:root {
  --bg: #0f1115;
  --card: #171a21;
  --line: #262b36;
  --text: #e7eaf0;
  --muted: #8b93a3;
  --accent: #6ee7b7;
  --danger: #f87171;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(1200px 600px at 20% -10%, #1b2230 0%, var(--bg) 55%);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  padding: 48px 20px 80px;
}
.wrap { max-width: 720px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.brand .mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; background: #1d2431; color: var(--accent); font-size: 20px;
  border: 1px solid var(--line);
}
.brand h1 { font-size: 20px; margin: 0; letter-spacing: .3px; }
.brand p { margin: 0; color: var(--muted); font-size: 13px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; margin-bottom: 18px;
}
.card h2 { margin: 0 0 8px; font-size: 17px; }
.card h3 { margin: 28px 0 6px; font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
input[type=password], input[type=text] {
  flex: 1; min-width: 200px; background: #10131a; color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 14px;
}
button {
  border: 0; border-radius: 10px; padding: 10px 16px; font-size: 14px;
  cursor: pointer; font-family: inherit;
}
.primary { background: var(--accent); color: #06231a; font-weight: 600; }
.primary:disabled { opacity: .45; cursor: not-allowed; }
.ghost { background: #1e2430; color: var(--text); border: 1px solid var(--line); }
.ghost:hover { background: #232a38; }
.ghost.small { padding: 6px 10px; font-size: 12px; }
.danger { color: var(--danger); }
form { display: flex; gap: 10px; margin: 16px 0 6px; }
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; margin: 18px 0; padding: 34px 20px; border: 1px dashed #333b4a;
  border-radius: 14px; background: #12151c; cursor: pointer; transition: .15s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: #141b20; }
.drop-title { font-weight: 600; }
progress { width: 100%; height: 8px; margin-top: 14px; accent-color: var(--accent); }
.result { margin-top: 18px; padding: 16px; border: 1px solid #1f3d31; background: #10231b; border-radius: 12px; }
.ok { color: var(--accent); margin: 0 0 10px; font-size: 14px; }
.copy { display: flex; gap: 8px; }
.copy input { flex: 1; background: #0c1611; border: 1px solid #1f3d31; color: var(--text); border-radius: 8px; padding: 9px 11px; font-size: 13px; }
.error { color: var(--danger); min-height: 20px; margin: 8px 0 0; font-size: 13px; }
.files { list-style: none; padding: 0; margin: 12px 0 0; }
.files li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.files li div:first-child { display: flex; flex-direction: column; min-width: 0; }
.files strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
