:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #edf8dc;
  color: #16201c;
  --ink: #101c19;
  --ink-2: #21302b;
  --lime: #caff2f;
  --lime-2: #e6ff72;
  --mist: #f7fbf1;
  --line: rgba(16, 28, 25, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 12%, rgba(202, 255, 47, 0.28), transparent 32%),
    radial-gradient(circle at 85% 18%, rgba(194, 241, 230, 0.56), transparent 34%),
    linear-gradient(135deg, #effbdc 0%, #f8fbf5 52%, #e7f4e4 100%);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px 28px 32px;
}

.topdock {
  width: min(640px, calc(100vw - 28px));
  min-height: 68px;
  margin: 0 auto 46px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(80px, 1fr)) 110px;
  gap: 8px;
  align-items: center;
  border-radius: 30px;
  background: rgba(15, 29, 25, 0.97);
  box-shadow: 0 18px 45px rgba(16, 28, 25, 0.2);
}

.dock-item,
.dock-action {
  min-height: 48px;
  border: 0;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  font-weight: 900;
  font-size: 0.82rem;
  cursor: pointer;
}

.dock-item.active {
  color: var(--lime);
  background: rgba(255, 255, 255, 0.09);
}

.dock-action {
  color: #0c1613;
  background: var(--lime);
  box-shadow: inset 0 -10px 18px rgba(80, 128, 15, 0.14);
  font-size: 1rem;
}

.hero-panel,
.control-panel,
.notice {
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 70px rgba(30, 52, 45, 0.14);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  float: left;
  width: 38%;
  min-height: 446px;
  border-radius: 38px;
  padding: 44px 28px 28px;
  background:
    linear-gradient(155deg, rgba(13, 29, 21, 0.98), rgba(29, 44, 38, 0.96)),
    #111c18;
  color: #ffffff;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 112px 68px auto auto;
  width: 222px;
  height: 222px;
  border: 54px solid rgba(233, 255, 218, 0.43);
  border-radius: 50%;
  opacity: 0.62;
}

.hero-panel::after {
  content: "";
  position: absolute;
  top: -76px;
  right: -64px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(202, 255, 47, 0.48);
  border-radius: 50%;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 374px;
  flex-direction: column;
  justify-content: flex-end;
}

.eyebrow {
  margin: 0 0 10px;
  color: #9bcc32;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 950;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 420px;
  font-size: clamp(3rem, 7vw, 5.1rem);
  line-height: 0.86;
  color: #ffffff;
}

.lede {
  max-width: 340px;
  margin: 18px 0 24px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-row div {
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.metric-row strong,
.metric-row span {
  display: block;
}

.metric-row strong {
  color: var(--lime);
  font-size: 1.22rem;
}

.metric-row span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
}

.control-panel {
  float: right;
  width: 56%;
  min-height: 478px;
  padding: 18px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px);
}

.panel-head {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 22px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 28px 28px 0 0;
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.66);
}

.avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  font-weight: 950;
}

.panel-head span {
  color: #64716c;
  font-size: 0.86rem;
  font-weight: 800;
}

.panel-head h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.status-pill {
  min-height: 44px;
  min-width: 94px;
  padding: 10px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #20302b;
  background: #f0f3ec;
  font-weight: 900;
}

.download-form {
  padding: 24px 20px 20px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  background: rgba(255, 255, 255, 0.66);
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 950;
}

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

input {
  min-width: 0;
  height: 58px;
  border: 1px solid rgba(16, 28, 25, 0.16);
  border-radius: 18px;
  padding: 0 18px;
  color: var(--ink);
  background: #fbfdf8;
}

input:focus {
  outline: 4px solid rgba(202, 255, 47, 0.36);
  border-color: #95c718;
}

button,
.button-link {
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #101c19;
  background: var(--lime);
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 -10px 18px rgba(80, 128, 15, 0.12);
}

button[type="button"],
#paste-button {
  color: #ffffff;
  background: #16231f;
  box-shadow: none;
}

button:disabled {
  opacity: 0.68;
  cursor: wait;
}

.progress {
  margin-top: 14px;
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--lime-2), #dfff64);
}

.progress[hidden],
.result[hidden] {
  display: none;
}

.progress-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
}

.progress-title strong {
  font-size: 1.6rem;
}

.progress-title span {
  font-weight: 950;
}

.bar {
  height: 14px;
  margin-top: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(16, 28, 25, 0.18);
}

.bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #101c19;
  transition: width 280ms ease;
}

#detail,
#file-meta,
.notice p,
.tiles p {
  color: #596861;
  line-height: 1.5;
}

#detail {
  margin-bottom: 0;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.tiles article {
  min-height: 134px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(248, 250, 244, 0.9);
}

.tiles span {
  display: inline-flex;
  min-width: 38px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #edf2e8;
  font-weight: 950;
  font-size: 0.82rem;
}

.tiles strong {
  display: block;
  margin-top: 22px;
}

.tiles p {
  margin: 6px 0 0;
  font-size: 0.9rem;
}

.result {
  margin-top: 14px;
  overflow: hidden;
  border-radius: 26px;
  background: #101c19;
  color: #ffffff;
}

video {
  width: 100%;
  max-height: 450px;
  display: block;
  background: #101c19;
}

.result-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#file-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.notice {
  clear: both;
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
}

.notice p {
  margin: 0;
}

@media (max-width: 980px) {
  .shell {
    padding: 14px;
  }

  .topdock {
    margin-bottom: 18px;
    grid-template-columns: repeat(2, 1fr);
  }

  .dock-action {
    grid-column: span 2;
  }

  .hero-panel,
  .control-panel {
    float: none;
    width: 100%;
  }

  .hero-panel {
    min-height: 360px;
    margin-bottom: 16px;
  }

  .hero-copy {
    min-height: 286px;
  }
}

@media (max-width: 720px) {
  .panel-head,
  .input-row,
  .tiles,
  .result-footer {
    grid-template-columns: 1fr;
  }

  .panel-head {
    border-radius: 24px 24px 0 0;
  }

  .status-pill {
    justify-self: start;
  }

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

  button,
  .button-link {
    width: 100%;
  }
}
