:root {
  color-scheme: dark;
  --bg: #080a12;
  --panel: rgba(16, 21, 35, 0.82);
  --panel-strong: rgba(24, 31, 50, 0.96);
  --text: #eef4ff;
  --muted: #92a0b8;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #77e7c8;
  --accent-2: #8aa7ff;
  --danger: #ff7f9b;
  --success: #77e7c8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(119, 231, 200, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(138, 167, 255, 0.22), transparent 26rem),
    linear-gradient(135deg, #080a12 0%, #0d1220 48%, #070911 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent);
}

.shell {
  position: relative;
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.hero {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(46px, 8vw, 86px);
  line-height: 0.88;
  letter-spacing: -0.07em;
}

.lead {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.panel,
.result {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.panel {
  padding: 22px;
}

.tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.tab {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.tab.active {
  color: #07120f;
  background: var(--accent);
}

.clip-form {
  display: none;
  gap: 16px;
}

.clip-form.active {
  display: grid;
}

.form-note,
.hint {
  margin: 0;
  color: var(--muted);
}

.form-note {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.hint {
  margin-top: -8px;
  font-size: 13px;
}

.hint code {
  color: var(--accent);
}

.grid {
  display: grid;
  gap: 16px;
}

.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three {
  grid-template-columns: 1.3fr 1fr 0.7fr;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 15px;
  color: var(--text);
  background: rgba(3, 6, 14, 0.58);
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(119, 231, 200, 0.78);
  box-shadow: 0 0 0 4px rgba(119, 231, 200, 0.12);
}

input[type="file"] {
  padding: 14px;
}

.toggle {
  align-content: end;
}

.toggle input {
  width: 52px;
  accent-color: var(--accent);
}

.primary,
.download,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  color: #06100d;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
}

.primary {
  min-height: 58px;
  margin-top: 8px;
  padding: 0 18px;
  font-size: 16px;
  justify-content: space-between;
}

.primary em {
  font-style: normal;
  opacity: 0.64;
}

.primary:disabled {
  cursor: wait;
  filter: grayscale(0.7);
  opacity: 0.72;
}

.result {
  margin: 18px 0;
  padding: 18px;
}

.result.hidden {
  display: none;
}

.status-card {
  display: grid;
  gap: 14px;
}

.status-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.status-head p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-head strong {
  font-size: 18px;
}

.status-dot {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--muted);
}

.status-card.running .status-dot,
.status-card.queued .status-dot {
  background: var(--accent-2);
  box-shadow: 0 0 24px var(--accent-2);
}

.status-card.succeeded .status-dot {
  background: var(--success);
  box-shadow: 0 0 24px var(--success);
}

.status-card.failed .status-dot {
  background: var(--danger);
  box-shadow: 0 0 24px var(--danger);
}

.progress-shell {
  position: relative;
  overflow: hidden;
  height: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
}

.progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 28px rgba(119, 231, 200, 0.35);
  animation: progress-slide 1.15s ease-in-out infinite;
}

@keyframes progress-slide {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(245%);
  }
}

.download {
  min-height: 48px;
  padding: 0 18px;
  width: fit-content;
}

.download-note,
.privacy-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.privacy-note {
  margin-top: 16px;
  text-align: center;
}

pre {
  max-height: 260px;
  overflow: auto;
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  color: #c8d3e7;
  background: rgba(0, 0, 0, 0.32);
  white-space: pre-wrap;
}

h2 {
  margin: 0;
}

.mini-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 20px, 980px);
    padding: 32px 0;
  }

  .two,
  .three {
    grid-template-columns: 1fr;
  }

}
