:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b1020;
  color: #e8ecf7;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, #15203e, #0b1020 55%); }
.shell { width: min(1080px, calc(100vw - 32px)); margin: 0 auto; padding: 40px 0 56px; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 16px; min-height: 180px; }
.hero-copy { max-width: 64ch; }
.lang-switcher { display: inline-flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid rgba(142, 160, 214, .14); align-self: start; }
.lang-button { appearance: none; border: 0; border-radius: 999px; padding: 10px 14px; background: transparent; color: #9fb0df; font: inherit; font-weight: 700; cursor: pointer; }
.lang-button.is-active { background: linear-gradient(135deg, #6c7cff, #8a5cff); color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; color: #8ea0d6; font-size: .75rem; margin: 0 0 12px; }
h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: .95; max-width: 12ch; }
.lede { max-width: 64ch; color: #b7c1df; font-size: 1.05rem; line-height: 1.7; }
.card { background: rgba(15, 20, 40, .74); border: 1px solid rgba(142, 160, 214, .18); border-radius: 24px; padding: 24px; backdrop-filter: blur(18px); box-shadow: 0 24px 80px rgba(0, 0, 0, .24); }
.workspace { margin-top: 28px; }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 6px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(142, 160, 214, .14); }
.tab { appearance: none; border: 1px solid transparent; background: rgba(255, 255, 255, .03); color: #9fb0df; padding: 14px 16px; border-radius: 14px; font: inherit; text-align: left; cursor: pointer; display: grid; gap: 4px; }
.tab-label { font-size: 1rem; font-weight: 800; letter-spacing: .01em; }
.tab-subtitle { font-size: .82rem; color: #bbc6e8; }
.tab.is-active { background: linear-gradient(135deg, #6c7cff, #8a5cff); color: #fff; border-color: rgba(255,255,255,.16); box-shadow: 0 12px 30px rgba(108, 124, 255, .24); }
.tab.is-active .tab-subtitle { color: rgba(255,255,255,.86); }
.panels { margin-top: 22px; }
.panel { display: grid; gap: 18px; }
.panel { padding-top: 8px; }
[hidden] { display: none !important; }
.panel-head { display: grid; gap: 6px; }
.stack { display: grid; gap: 12px; }
.stack input, .stack button { width: 100%; border-radius: 16px; border: 1px solid rgba(142, 160, 214, .2); background: rgba(255, 255, 255, .04); color: inherit; padding: 14px 16px; font: inherit; }
.stack button { background: linear-gradient(135deg, #6c7cff, #8a5cff); border: none; font-weight: 700; cursor: pointer; }
.stack button:hover { filter: brightness(1.06); }
.hint { color: #9fb0df; }
code { background: rgba(255,255,255,.08); padding: .14rem .42rem; border-radius: 999px; }
.status-card { margin-top: 20px; }
.status-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.progress-wrap { position: relative; margin-top: 18px; display: grid; gap: 12px; padding-top: 12px; }
.progress-track { position: relative; height: 12px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress-bar { height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, #19d3a2, #2c98ff); transition: width .25s ease; animation: pulse 1.2s ease-in-out infinite; }
.progress-mark { position: absolute; top: 6px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: #2c98ff; box-shadow: 0 0 0 6px rgba(44, 152, 255, .16); transition: background .2s ease, box-shadow .2s ease, left .25s ease; }
.progress-mark[data-state="failed"] { background: #ff5f6d; box-shadow: 0 0 0 6px rgba(255, 95, 109, .16); }
.progress-mark[data-state="done"] { background: #19d3a2; box-shadow: 0 0 0 6px rgba(25, 211, 162, .16); }
.status-message { min-height: 1.5rem; margin: 14px 0 0; color: #b7c1df; line-height: 1.5; }
.status-message[data-state="failed"], .status-message[data-state="done"] { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); }
.status-message[data-state="failed"] { color: #ffb3bb; }
.status-message[data-state="done"] { color: #aef0db; }
.download-link { display: inline-flex; margin-top: 18px; align-items: center; justify-content: center; padding: 14px 18px; border-radius: 16px; background: linear-gradient(135deg, #19d3a2, #2c98ff); color: #06111c; font-weight: 800; text-decoration: none; }
.download-link:hover { filter: brightness(1.05); }
@keyframes pulse {
  0%, 100% { opacity: .72; }
  50% { opacity: 1; }
}
@media (max-width: 820px) {
  .hero { min-height: unset; }
  .tabs { width: 100%; }
}
