:root {
  color-scheme: dark;
  font: 16px/1.55 system-ui, "Microsoft YaHei", sans-serif;
  color: #edf2fa;
  background: #0c1220;
  --panel: #141e2e;
  --line: #2d3d54;
  --muted: #adbed4;
  --accent: #88f0c3;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
.shell { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.site-head { border-bottom: 1px solid #253149; }
.site-head .shell { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; gap: 9px; align-items: center; text-decoration: none; font-weight: 750; }
.brand-mark { display: grid; place-items: center; border: 1px solid #496b67; border-radius: 7px; width: 31px; height: 31px; color: var(--accent); font-family: ui-monospace, monospace; }
.brand-slash, .muted, .head-link { color: var(--muted); }
.head-link { font-size: .9rem; text-decoration: none; }
.head-link:hover { color: white; }
.hero { padding: 46px 0 28px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.18; letter-spacing: -.045em; }
h1 span { color: var(--accent); }
.hero p { color: var(--muted); margin-top: 14px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr); align-items: start; gap: 20px; padding-bottom: 45px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; min-width: 0; }
h2 { font-size: 1.16rem; margin-bottom: 16px; }
.drop { position: relative; min-height: 150px; padding: 19px; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; cursor: pointer; border: 1px dashed #607994; border-radius: 10px; background: #111a29; overflow-wrap: anywhere; }
.drop:hover, .drop:focus-within, .drop.dragging { background: #182b37; border-color: var(--accent); }
.drop input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; cursor: pointer; }
.file-symbol { color: var(--accent); border-radius: 7px; background: #213d40; padding: 3px 8px; font: 700 .82rem/1.5 ui-monospace, monospace; }
.drop .muted { font-size: .88rem; }
fieldset { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 10px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.fields label { min-width: 0; display: grid; gap: 5px; font-size: .9rem; }
.fields input, select { width: 100%; min-height: 42px; background: #0f1827; color: inherit; border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; font: inherit; }
.fields input::placeholder { color: #9babbe; }
.check { display: flex; align-items: center; gap: 8px; margin: 16px 0; font-size: .9rem; }
input[type="checkbox"], progress { accent-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
button, .download { font: inherit; font-weight: 750; border-radius: 8px; padding: 9px 14px; text-decoration: none; border: 1px solid transparent; }
button { cursor: pointer; background: var(--accent); color: #0a241b; }
button:disabled { cursor: default; opacity: .5; }
.download { border-color: #638a7b; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
progress { width: 100%; display: block; margin-top: 12px; height: 8px; }
#status { color: var(--accent); font-size: .9rem; white-space: pre-line; overflow-wrap: anywhere; }
#status:not(:empty) { margin-top: 10px; }
#status.error { color: #ffadae; }
#warnings { font-family: inherit; font-size: .9rem; margin: 12px 0 0; padding: 10px 12px; background: #393020; border-radius: 7px; color: #ffe4ac; white-space: pre-wrap; overflow-wrap: anywhere; }
dl { margin: 0; }
dl div + div { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
dt { font-weight: 700; }
dd { margin: 4px 0 0; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
code { color: #c5e5fd; }
@media (max-width: 750px) {
  .shell { width: calc(100% - 28px); }
  .workspace { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .hero { padding-top: 32px; }
}
@media (max-width: 400px) {
  .fields { grid-template-columns: 1fr; }
}
