:root {
  --bg: #070b14;
  --bg-elevated: #101826;
  --bg-soft: #152033;
  --card: rgba(14, 22, 36, 0.82);
  --text: #edf3ff;
  --muted: #9db0cb;
  --line: rgba(148, 175, 214, 0.16);
  --line-strong: rgba(148, 175, 214, 0.28);
  --brand: #1d9bf0;
  --brand-2: #38bdf8;
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.18);
  --radius: 24px;
  --radius-sm: 16px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.25rem;
  --space-5: 1.75rem;
  --space-6: 2.25rem;
  --max: 1180px;
  --font: "Segoe UI", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(29, 155, 240, 0.22), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(56, 189, 248, 0.12), transparent 45%),
    linear-gradient(180deg, #05080f 0%, #0a1220 45%, #070b14 100%);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), #0ea5e9);
  box-shadow: 0 8px 24px rgba(29, 155, 240, 0.35);
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  place-items: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 8px 24px rgba(2, 8, 23, 0.28);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.nav-toggle:hover {
  border-color: rgba(29, 155, 240, 0.45);
  background: rgba(29, 155, 240, 0.12);
}

.nav-toggle:focus-visible {
  outline: 2px solid rgba(29, 155, 240, 0.7);
  outline-offset: 2px;
}

.nav-toggle-bars {
  width: 18px;
  height: 14px;
  display: grid;
  align-content: space-between;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

.site-header.nav-open .nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav {
    position: relative;
    flex-wrap: nowrap;
    gap: 0.75rem;
    padding: 0.8rem 0;
  }

  .brand span:last-child {
    font-size: 1rem;
  }

  .nav-toggle {
    display: grid;
    margin-left: auto;
    z-index: 2;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    left: auto;
    width: min(18.5rem, calc(100vw - 1.5rem));
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.55rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0) 36%),
      rgba(8, 13, 24, 0.96);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
    z-index: 30;
  }

  .site-header.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    color: #dbe7f5;
    font-size: 0.98rem;
    font-weight: 500;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    color: var(--text);
    background: rgba(29, 155, 240, 0.12);
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 15, 0.48);
    z-index: 15;
  }

  .site-header {
    z-index: 40;
  }
}

.hero {
  padding: 3.5rem 0 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
}

.panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0) 42%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.45rem;
  backdrop-filter: blur(10px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(29, 155, 240, 0.12);
  color: #9bd7ff;
  font-size: 0.85rem;
  border: 1px solid rgba(29, 155, 240, 0.22);
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; color: var(--muted); }

.lead {
  font-size: 1.08rem;
  max-width: 46rem;
}

.tool-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

input[type="url"], input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(7, 12, 22, 0.8);
  color: var(--text);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font: inherit;
  outline: none;
}

input:focus {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 4px rgba(29, 155, 240, 0.12);
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 16px;
  padding: 0.95rem 1.2rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--brand), #0ea5e9);
  box-shadow: 0 12px 30px rgba(29, 155, 240, 0.28);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.helper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.helper span::before {
  content: "•";
  margin-right: 0.45rem;
  color: var(--brand-2);
}

.status {
  min-height: 1.4rem;
  font-size: 0.95rem;
}

.status.error { color: var(--bad); }
.status.ok { color: var(--good); }
.status.loading { color: var(--brand-2); }

.side-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem;
}

.stat strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.stat span { color: var(--muted); font-size: 0.9rem; }

.results {
  margin-top: 1.2rem;
  display: none;
}

.results.show { display: block; }

.tweet-meta {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1rem;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.tweet-meta h3 { margin: 0; }
.tweet-meta p { margin: 0.15rem 0 0; }

.media-grid {
  display: grid;
  gap: 1rem;
}

.media-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}

.thumb {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  background: #0b1322;
  border: 1px solid var(--line);
}

.media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  background: rgba(29,155,240,0.12);
  color: #bfe7ff;
  border: 1px solid rgba(29,155,240,0.2);
}

.section {
  padding: 2.5rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: rgba(16, 24, 38, 0.9);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.2rem;
}

.card h3 { margin-bottom: 0.5rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(16,24,38,0.88);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  margin-bottom: 0.8rem;
  background: rgba(29,155,240,0.15);
  color: #9bd7ff;
  font-weight: 700;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(16,24,38,0.88);
  padding: 0.95rem 1rem;
  margin-bottom: 0.75rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
}

.faq p { margin: 0.75rem 0 0; }

.prose {
  max-width: 760px;
}

.prose h1 { margin-top: 0.5rem; }
.prose h2 { margin-top: 2rem; }
.prose ul, .prose ol { color: var(--muted); padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }
.prose code {
  background: rgba(255,255,255,0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.page-hero {
  padding: 2.5rem 0 1rem;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-grid h3 {
  margin-bottom: 0.7rem;
  font-size: 1rem;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.footer-grid a:hover { color: var(--text); text-decoration: none; }

.note {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid,
  .cards,
  .steps,
  .footer-grid,
  .media-card {
    grid-template-columns: 1fr;
  }

  .thumb {
    width: 100%;
    height: 180px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }
}

/* Feature upgrades */
.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.btn-small {
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

.input-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
  user-select: none;
}

.switch input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--brand);
}

textarea#post-url,
input#post-url {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(7, 12, 22, 0.8);
  color: var(--text);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font: inherit;
  outline: none;
  resize: vertical;
  min-height: 3.2rem;
}

textarea#post-url:focus,
input#post-url:focus {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 4px rgba(29, 155, 240, 0.12);
}

.result-card {
  margin-top: 1rem;
}

.result-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.2rem 0 1rem;
}

.variant-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.variant-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.media-help {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
}

.video-thumb {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  background: #0b1322;
  border: 1px solid var(--line);
}

.history-box {
  display: grid;
  gap: 0.55rem;
}

.history-item {
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  display: grid;
  gap: 0.15rem;
}

.history-item:hover {
  border-color: rgba(56, 189, 248, 0.45);
}

.history-item span,
.history-item em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-summary {
  margin: 1rem 0 0.25rem;
}

.feature-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.feature-list li {
  margin-bottom: 0.2rem;
}

@media (max-width: 900px) {
  .video-thumb {
    width: 100%;
    height: 200px;
  }
}

/* Turnstile + PWA */
.turnstile-slot {
  min-height: 0;
}

.turnstile-slot:not(:empty) {
  margin-top: 0.35rem;
}

.turnstile-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.pwa-banner {
  display: none;
  margin-top: 0.75rem;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(29,155,240,0.28);
  background: rgba(29,155,240,0.10);
  color: var(--text);
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
}

.pwa-banner.show {
  display: flex;
  flex-wrap: wrap;
}

.pwa-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}


/* Media preview + lightbox */
.media-preview {
  position: relative;
  display: block;
  width: 140px;
  height: 100px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background: #0b1322 center/cover no-repeat;
  color: #fff;
}

.media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-preview-video {
  cursor: pointer;
}

.media-preview-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.45));
}

.media-play-badge {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(29, 155, 240, 0.92);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  font-size: 0.95rem;
  padding-left: 2px;
}

.media-preview-label {
  position: absolute;
  z-index: 2;
  left: 8px;
  right: 8px;
  bottom: 6px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-align: center;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 2px rgba(0,0,0,0.55);
}

.media-preview:hover {
  border-color: rgba(56, 189, 248, 0.55);
  transform: translateY(-1px);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.media-lightbox[hidden] {
  display: none !important;
}

.media-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 16, 0.82);
  backdrop-filter: blur(8px);
}

.media-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(88vh, 900px);
  display: grid;
  place-items: center;
}

.media-lightbox-close {
  position: absolute;
  top: -0.4rem;
  right: -0.2rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.media-lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.media-lightbox-body {
  width: 100%;
  display: grid;
  place-items: center;
}

.media-lightbox-image,
.media-lightbox-video {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 960px);
  max-height: min(82vh, 860px);
  border-radius: 16px;
  background: #000;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
}

.media-lightbox-video {
  width: min(92vw, 960px);
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .media-preview {
    width: 100%;
    height: 200px;
  }

  .media-lightbox-close {
    top: 0.2rem;
    right: 0.2rem;
  }
}



/* ===== Workspace visual system v3 ===== */
.hero {
  padding: 2.6rem 0 1.8rem;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.78fr);
  gap: 1.35rem;
  align-items: start;
}

.workspace-main,
.workspace-rail {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.workspace-rail {
  position: sticky;
  top: 5.4rem;
  align-content: start;
}

.tool-panel {
  padding: 1.55rem 1.55rem 1.4rem;
}

.tool-header {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(148, 175, 214, 0.12);
}

.tool-header .badge {
  width: fit-content;
}

.tool-header h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.tool-header .lead {
  margin: 0;
  max-width: 48rem;
  font-size: 1.05rem;
  color: #b7c7de;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(29, 155, 240, 0.10);
  color: #c7ebff;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.tool-form {
  display: grid;
  gap: 0.95rem;
  margin-top: 0;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem;
  align-items: stretch;
}

.input-row input,
.input-row textarea,
textarea#post-url,
input#post-url {
  min-height: 3.35rem;
  border-radius: 18px;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line-strong);
  background: rgba(5, 10, 18, 0.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.input-row .btn-primary {
  min-width: 132px;
  border-radius: 18px;
  padding-inline: 1.25rem;
}

.input-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.input-tools .btn-small {
  min-height: 2.45rem;
}

.turnstile-slot {
  margin-top: 0.15rem;
}

.turnstile-slot:not(:empty) {
  margin-top: 0.2rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 175, 214, 0.12);
  background: rgba(0, 0, 0, 0.18);
}

.turnstile-note {
  margin-top: 0.55rem;
}

.helper {
  gap: 0.55rem 1.1rem;
  margin-top: 0.1rem;
}

.status {
  min-height: 1.35rem;
  margin-top: 0.15rem;
}

/* Empty state */
.empty-results {
  display: block;
  padding: 1.55rem;
}

.workspace.has-results .empty-results {
  display: none;
}

.workspace.has-results .results {
  display: grid;
  gap: 1.1rem;
}

.results {
  display: none;
}

.results.show {
  display: grid;
  gap: 1.1rem;
}

.empty-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 1.4rem;
  align-items: stretch;
}

.empty-copy h2 {
  margin: 0.2rem 0 0.7rem;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.empty-copy p {
  margin: 0;
}

.empty-points {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.empty-points li {
  margin-bottom: 0.45rem;
}

.empty-cards {
  display: grid;
  gap: 0.75rem;
  align-content: center;
}

.mini-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  box-shadow: var(--shadow-soft);
  color: var(--muted);
}

.mini-card strong {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(29,155,240,0.16);
  color: #9bd7ff;
  font-size: 0.9rem;
}

.mini-title {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.12rem;
}

.mini-card em {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Rail */
.rail-card {
  padding: 1.15rem 1.15rem 1.1rem;
}

.rail-card h2,
.rail-card h3 {
  margin: 0 0 0.55rem;
}

.rail-card h2 {
  font-size: 1.18rem;
}

.rail-card h3 {
  font-size: 1.02rem;
}

.rail-kicker {
  margin: 0 0 0.35rem;
  color: #8ecfff;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rail-head {
  margin-bottom: 0.85rem;
  align-items: start;
}

.tip-card {
  background:
    radial-gradient(420px 120px at 0% 0%, rgba(29,155,240,0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    rgba(14, 22, 36, 0.82);
}

.tip-card p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
}

.history-box {
  display: grid;
  gap: 0.65rem;
  max-height: 360px;
  overflow: auto;
  padding-right: 0.1rem;
}

.history-item {
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  color: var(--text);
  border-radius: 16px;
  padding: 0.8rem 0.85rem;
  cursor: pointer;
  display: grid;
  gap: 0.2rem;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.history-item:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(29, 155, 240, 0.06);
  transform: translateY(-1px);
}

.history-item strong {
  font-size: 0.94rem;
}

.history-item span,
.history-item em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Results */
.batch-summary {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(29,155,240,0.22);
  background: rgba(29,155,240,0.10);
  color: #d7f1ff;
}

.result-card {
  margin-top: 0;
  padding: 1.3rem 1.3rem 1.25rem;
  background:
    radial-gradient(760px 220px at 0% 0%, rgba(29,155,240,0.12), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    rgba(14, 22, 36, 0.88);
}

.result-layout {
  display: grid;
  gap: 1.05rem;
}

.result-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(148, 175, 214, 0.12);
}

.result-header .tweet-meta {
  margin-bottom: 0;
}

.result-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.result-stats span {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.result-text {
  color: #b9c9df;
  margin: 0;
  line-height: 1.7;
  max-width: 78ch;
  font-size: 0.98rem;
}

.result-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
}

.media-grid {
  display: grid;
  gap: 0.95rem;
}

.media-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1.05rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 175, 214, 0.14);
  background: rgba(5, 10, 18, 0.42);
}

.media-preview {
  width: 190px;
  height: 136px;
  border-radius: 16px;
}

.media-help {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.variant-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.variant-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) auto auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 175, 214, 0.12);
  background: rgba(255,255,255,0.025);
}

.variant-row .tag {
  justify-self: start;
}

.section {
  padding: 2.8rem 0;
}

.section + .section {
  padding-top: 1.6rem;
}

.site-footer {
  margin-top: 2.4rem;
}

@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .workspace-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .workspace-rail .rail-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 1.6rem;
  }

  .tool-panel,
  .empty-results,
  .result-card,
  .rail-card {
    padding: 1.15rem;
  }

  .empty-grid,
  .media-card,
  .variant-row,
  .input-row {
    grid-template-columns: 1fr;
  }

  .media-preview {
    width: 100%;
    height: 220px;
  }

  .workspace-rail {
    grid-template-columns: 1fr;
  }

  .result-header {
    flex-direction: column;
  }

  .result-stats {
    justify-content: flex-start;
  }

  .input-row .btn-primary {
    min-width: 0;
    width: 100%;
  }
}


/* Scroll target focus */
.results:focus {
  outline: none;
}
.results:focus-visible {
  outline: none;
}
