:root {
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --bg: #f6f7f9;
  --card: #fff;
  --brand: #2f5bea;
  --green: #1a7f37;
  --amber: #b7791f;
  --orange: #e8590c;
  --red: #d92d20;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.top {
  max-width: 980px; margin: 0 auto; padding: 26px 22px 8px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.brand { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 9px; }
.mark {
  width: 26px; height: 26px; border-radius: 8px; color: #fff; display: grid; place-items: center;
  background: linear-gradient(135deg, #2f5bea, #7aa2ff); font-size: 14px;
}
.tag {
  font-size: 11px; font-weight: 600; color: var(--brand); background: #eef2ff;
  border-radius: 5px; padding: 1px 7px;
}
.tag.free { color: #166534; background: #f0fdf4; }
.meta { color: var(--muted); font-size: 12px; }
main { max-width: 980px; margin: 0 auto; padding: 10px 22px 48px; }
.hero {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 26px 26px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
h1 { margin: 0 0 4px; font-size: 25px; letter-spacing: -.4px; }
.tabs {
  display: flex; gap: 4px; width: max-content; margin-bottom: 18px;
  background: #f2f4f7; border-radius: 10px; padding: 4px;
}
.tab {
  border: 0; background: transparent; color: var(--muted); font: inherit;
  font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 7px; cursor: pointer;
}
.tab:hover:not(.active) { color: var(--ink); }
.tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
.sub { margin: 0 0 20px; color: var(--muted); }
.invite {
  display: flex; align-items: center; gap: 10px; margin: -8px 0 14px;
  font-size: 13px; color: #344054;
}
.invite label { flex: 0 0 auto; color: var(--muted); }
.invite input {
  flex: 1; max-width: 320px; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 10px; font: inherit; outline: none;
}
.invite input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px #eef2ff; }
.drop {
  border: 2px dashed #c7d0e0; border-radius: 14px; background: #fbfcfe;
  padding: 34px 18px; text-align: center; cursor: pointer; transition: .15s;
}
.drop:hover, .drop.dragover { border-color: var(--brand); background: #f5f8ff; }
.drop-inner p { margin: 4px 0; }
.convert-note {
  margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7;
  background: #fbfcfe; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px;
}
.drop .icon {
  width: 42px; height: 42px; margin: 0 auto 10px; border-radius: 50%;
  display: grid; place-items: center; background: #eef2ff; color: var(--brand);
  font-size: 20px; font-weight: 700;
}
.hint { color: var(--muted); font-size: 12px; }
.progress { margin-top: 18px; }
.progress-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.bar { height: 8px; border-radius: 99px; background: #e9edf5; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.bar.running i { width: 100% !important; background: linear-gradient(90deg, #2f5bea, #7aa2ff, #2f5bea); background-size: 200% 100%; animation: slide 1.2s linear infinite; }
@keyframes slide { from { background-position: 0 0; } to { background-position: 200% 0; } }
.error {
  margin-top: 16px; background: #fef3f2; border: 1px solid #fda29b; color: #b42318;
  border-radius: 10px; padding: 10px 14px; font-size: 13px;
}
.hidden { display: none !important; }
.result { margin-top: 20px; }
.result-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  display: flex; gap: 26px; align-items: center;
}
.score {
  --p: 0; --c: var(--green); width: 124px; height: 124px; flex: 0 0 124px; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #e9edf5 0);
  display: grid; place-items: center; position: relative;
}
.score::before { content: ""; position: absolute; inset: 9px; background: #fff; border-radius: 50%; }
.score-inner { position: relative; text-align: center; line-height: 1; }
.score-num { font-size: 34px; font-weight: 800; color: var(--c); letter-spacing: -1px; }
.score-unit { font-size: 11px; color: var(--muted); margin-top: 4px; }
.result-main { flex: 1; min-width: 0; }
.result-top { display: flex; align-items: center; gap: 10px; }
.result-top h2 { margin: 0; font-size: 22px; }
.file { margin: 2px 0 12px; color: var(--muted); font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 12px; color: #344054; background: #fbfcfe; }
.chip b { font-weight: 700; }
.chip.red { border-color: #fda29b; background: #fef3f2; color: #b42318; }
.chip.orange { border-color: #f9c07a; background: #fff6ed; color: #b93815; }
.chip.amber { border-color: #f2d18b; background: #fffaeb; color: #93370d; }
.chip.green { border-color: #a6e3b8; background: #f0fdf4; color: #166534; }
.kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 16px; margin: 14px 0; padding-top: 12px; border-top: 1px dashed var(--line); }
.kv dt { font-size: 11px; color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; font-size: 13px; word-break: break-all; }
.actions { margin-top: 12px; }
.btn {
  display: inline-block; background: var(--brand); color: #fff; text-decoration: none;
  border-radius: 8px; padding: 9px 16px; font-weight: 600; font-size: 13px;
}
.btn:hover { filter: brightness(1.05); }
.actions .ghost { margin-left: 8px; }
.convert-icon {
  width: 76px; height: 76px; flex: 0 0 76px; border-radius: 50%;
  display: grid; place-items: center; background: #f0fdf4; color: #1a7f37;
  font-size: 32px; font-weight: 800;
}
.blockers { margin-top: 12px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 10px; padding: 14px 16px; }
.blockers h3 { margin: 0 0 6px; font-size: 14px; color: #b42318; }
.blockers ul { margin: 0; padding-left: 18px; }
.blockers li { margin: 3px 0; }
.blockers.ok { border-left-color: var(--green); }
.blockers.ok h3 { color: var(--green); }
.recent { margin-top: 26px; }
.recent-head { display: flex; justify-content: space-between; align-items: center; }
.recent-head h2 { font-size: 16px; margin: 0 0 10px; }
.ghost { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 4px 10px; color: var(--muted); cursor: pointer; font-size: 12px; }
.ghost:hover { color: var(--ink); }
.recent-list { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.recent-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.recent-item:last-child { border-bottom: none; }
.dot { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; background: var(--c, var(--muted)); }
.recent-main { flex: 1; min-width: 0; }
.recent-main b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-main span { color: var(--muted); font-size: 11px; }
.recent-item a { font-size: 12px; color: var(--brand); text-decoration: none; }
.empty { color: var(--muted); padding: 14px; margin: 0; font-size: 13px; }
footer { max-width: 980px; margin: 0 auto; padding: 0 22px 30px; color: var(--muted); font-size: 11px; }
@media (max-width: 700px) {
  .result-card { flex-direction: column; align-items: flex-start; }
  .kv { grid-template-columns: 1fr 1fr; }
  .top { flex-direction: column; align-items: flex-start; gap: 4px; }
}
