:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #5c6670;
  --line: #d8dde3;
  --panel: #ffffff;
  --page: #f4f6f8;
  --accent: #127c72;
  --accent-dark: #0e5f58;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--page);
}

.shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 18px;
  align-items: start;
}

.panel,
.result-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

.mark {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 2px solid var(--ink);
  font-weight: 700;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
}

h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.uploader {
  display: grid;
  gap: 16px;
}

.drop-zone {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 24px;
  border: 2px dashed #aeb7c2;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  background: #fbfcfd;
}

.drop-zone input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.drop-title {
  font-size: 22px;
  font-weight: 700;
}

.drop-subtitle {
  margin-top: 8px;
  color: var(--muted);
}

.switch-row {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
}

.field-row {
  display: grid;
  gap: 8px;
  color: var(--ink);
}

.field-row select {
  width: min(320px, 100%);
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.switch-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

button,
.download,
.secondary {
  width: fit-content;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--accent);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.download:hover,
.secondary:hover {
  background: var(--accent-dark);
}

button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.status {
  min-height: 42px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fbfcfd;
}

.status.success {
  color: #0d5946;
  border-color: #96d4c2;
  background: #eefaf6;
}

.status.error {
  color: #8d1f1f;
  border-color: #e2aaa8;
  background: #fff4f3;
}

.download {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
}

.secondary {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  background: #29445f;
}

.secondary:hover {
  background: #1f3348;
}

.hidden {
  display: none;
}

@media (max-width: 780px) {
  .shell {
    padding: 24px 0;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .brand {
    align-items: flex-start;
  }
}
