:root {
  --bg: #050507;
  --panel: rgba(13, 14, 19, 0.78);
  --field: rgba(22, 22, 30, 0.56);
  --line: rgba(255, 255, 255, 0.09);
  --line2: rgba(255, 255, 255, 0.16);
  --ink: #ededf1;
  --text: #b9bac4;
  --dim: #747681;
  --blue: #6699f0;
  --green: #48d58b;
  --red: #ef6b75;
  --r: 12px;
  --font:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
}
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      55% 70% at 4% 46%,
      rgba(29, 85, 146, 0.18),
      transparent 64%
    ),
    radial-gradient(
      48% 62% at 98% 42%,
      rgba(89, 31, 133, 0.16),
      transparent 67%
    );
  filter: blur(20px);
}
.topbar {
  height: 58px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 820px) / 2));
  position: relative;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  font-size: 15px;
}
.brand-logo {
  position: relative;
  display: block;
  width: 118px;
  height: 32px;
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-logo img {
  position: absolute;
  width: 150px;
  height: 100px;
  max-width: none;
  left: -15px;
  top: -30px;
}
.brand-product {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.topbar nav {
  display: flex;
  align-self: stretch;
  gap: 24px;
}
.topbar nav a {
  display: flex;
  align-items: center;
  color: var(--dim);
  font-size: 11px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.topbar nav a:hover,
.topbar nav a.active {
  color: var(--ink);
  border-color: var(--blue);
}
.host-shell {
  width: min(768px, calc(100% - 32px));
  margin: 22px auto 64px;
  position: relative;
  z-index: 1;
}
.dropzone {
  min-height: 240px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  outline: none;
  transition: 0.2s;
}
.dropzone:hover,
.dropzone.drag {
  border-color: rgba(102, 153, 240, 0.55);
  background: rgba(80, 144, 232, 0.035);
}
.dropzone svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 12px;
}
.dropzone h1 {
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 12px;
}
.dropzone p {
  font-size: 10px;
  color: var(--dim);
  margin: 12px 0 0;
}
.btn,
.dropzone button,
.result-row button {
  height: 36px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  font: 600 11px var(--font);
  padding: 0 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:hover,
.dropzone button:hover,
.result-row button:hover {
  background: rgba(255, 255, 255, 0.09);
}
.file-list,
.options,
.result {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.27);
  margin-top: 8px;
  overflow: hidden;
}
.file-item {
  height: 58px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
.file-item:last-child {
  border-bottom: 0;
}
.file-thumb {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  object-fit: cover;
  background: rgba(80, 144, 232, 0.1);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}
.file-meta {
  min-width: 0;
  flex: 1;
}
.file-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
}
.file-size {
  font-size: 9px;
  color: var(--dim);
  margin-top: 4px;
}
.remove {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  cursor: pointer;
}
.option-row {
  min-height: 66px;
  padding: 11px 13px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(230px, 320px);
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
.option-row:last-child {
  border: 0;
}
.option-row label {
  display: block;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
}
.option-row label span {
  color: var(--dim);
  font-weight: 400;
}
.option-row label b {
  color: var(--red);
}
.option-row p {
  font-size: 9px;
  color: var(--dim);
  margin: 4px 0 0;
  line-height: 1.4;
}
input,
select,
textarea {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
  color: var(--text);
  font: 11px var(--font);
  padding: 0 11px;
  outline: none;
}
textarea {
  height: 46px;
  padding-top: 9px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(102, 153, 240, 0.48);
}
.upload-btn {
  width: 100%;
  height: 42px;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--ink);
  font: 700 12px var(--font);
  cursor: pointer;
}
.upload-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.upload-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  margin-top: 8px;
  border-radius: 99px;
  overflow: hidden;
}
.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
  transition: width 0.25s;
}
.message {
  text-align: center;
  min-height: 18px;
  color: var(--red);
  font-size: 10px;
}
.result {
  padding: 28px;
}
.success-icon {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(72, 213, 139, 0.5);
  border-radius: 50%;
  color: var(--green);
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
}
.result h2 {
  text-align: center;
  color: var(--ink);
  font-size: 17px;
  margin: 0;
}
.result > p {
  text-align: center;
  color: var(--dim);
  font-size: 10px;
  margin: 5px 0 22px;
}
.result-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  margin-top: 8px;
}
.result-row > label {
  font-size: 10px;
  color: var(--dim);
}
.result-row > div {
  display: flex;
}
.result-row input {
  border-radius: 10px 0 0 10px;
  font-family: Consolas, monospace;
}
.result-row button {
  border-radius: 0 10px 10px 0;
}
.result-new {
  margin: 22px auto 0;
  width: max-content;
}
.hidden {
  display: none !important;
}
@media (max-width: 650px) {
  .topbar {
    padding: 0 16px;
  }
  .topbar nav {
    gap: 12px;
  }
  .option-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 13px;
  }
  .host-shell {
    width: min(100% - 20px, 768px);
    margin-top: 10px;
  }
  .dropzone {
    min-height: 210px;
  }
  .result {
    padding: 18px;
  }
  .result-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .result-row > div {
    min-width: 0;
  }
}
