:root {
  color-scheme: dark;
  --base: #090b0b;
  --panel: #111515;
  --text: #f0f4f3;
  --muted: #a7b7b5;
  --line: #293836;
  --accent: #adf4db;
  font: 16px/1.55 "Instrument Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(ellipse at 75% 0%, #172c26 0, transparent 45rem), var(--base);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible, .drop:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.topbar {
  min-height: 4.4rem;
  padding: .8rem clamp(1.25rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.2rem; font-weight: 750; }
.brand span { width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); }
main { width: min(100% - 2.5rem, 44rem); margin: clamp(3rem, 8vw, 7rem) auto 5rem; }
h1 { font-size: clamp(2.85rem, 8vw, 5.5rem); line-height: 1.1; margin: 0 0 1rem; letter-spacing: -.06em; }
h2 { font-size: 1.25rem; margin: 0 0 .2rem; }
p { margin: 0; }
.intro, .tool-card p, small { color: var(--muted); }
.tool-card, .panel {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
}
.tool-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem;
}
.tool-card:hover { border-color: var(--accent); }
.arrow { font-size: 1.4rem; color: var(--accent); }
.film {
  display: inline-block;
  width: 2.35rem;
  height: 1.85rem;
  border: 2px solid var(--accent);
  border-inline: 5px dotted var(--accent);
  border-radius: .25rem;
  position: relative;
}
.film::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-37%, -50%);
  border-left: .55rem solid var(--accent);
  border-block: .36rem solid transparent;
}
.panel { margin-top: 1.65rem; padding: clamp(1rem, 4vw, 1.6rem); }
.drop {
  display: grid;
  justify-items: center;
  gap: .65rem;
  border: 1px dashed #52766b;
  border-radius: .7rem;
  padding: 1.65rem .8rem;
  margin-bottom: 1.25rem;
  text-align: center;
  cursor: pointer;
  overflow-wrap: anywhere;
  background: #15221e;
}
.drop:hover, .drop.dragging { background: #20362d; border-color: var(--accent); }
.drop strong { max-width: 100%; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.submit-row, .actions { display: flex; gap: .7rem; margin-top: .5rem; }
input[type=password], input[type=url] {
  min-width: 0;
  width: 100%;
  height: 2.85rem;
  border: 1px solid #476158;
  border-radius: .5rem;
  padding: 0 .7rem;
  background: var(--base);
  color: var(--text);
  font: inherit;
}
button, .button {
  padding: .6rem 1rem;
  border-radius: .5rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #10251d;
  white-space: nowrap;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
button:hover, .button:hover { color: #10251d; background: #c7ffe9; }
button:disabled { cursor: wait; opacity: .65; }
progress { display: block; width: 100%; margin-top: 1rem; accent-color: var(--accent); }
#status:not(:empty) { padding-top: .7rem; }
#status.error { color: #ffc2ae; }
.result input { margin-top: .65rem; }
.actions { margin-top: .85rem; flex-wrap: wrap; }
.secondary { color: var(--accent); background: transparent; }
