:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #e3e6eb;
  --text: #1c2026;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --ok: #15803d;
  --err: #b91c1c;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
.app { max-width: 860px; margin: 0 auto; padding: 32px 20px 64px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; }
h1 { font-size: 20px; margin: 0; }
.topbar p { margin: 0; color: var(--muted); font-size: 13px; }
.tag { font-size: 12px; color: var(--accent); background: #e8efff; border: 1px solid #d6e3ff; border-radius: 999px; padding: 4px 12px; }
.main { display: grid; gap: 18px; }
.card, .info-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
label, .option-label { display: block; font-weight: 600; margin-bottom: 8px; }
.input-row { display: flex; gap: 10px; }
input[type=text], select { flex: 1; min-width: 0; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; font: inherit; color: var(--text); background: #fff; outline: none; }
input[type=text]:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.btn { border: 0; border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 600; cursor: pointer; }
.btn-primary { color: #fff; background: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.hint { color: var(--muted); font-size: 12px; margin: 9px 0 0; }
.options { display: flex; gap: 28px; align-items: end; margin: 22px 0; flex-wrap: wrap; }
.options > div { min-width: 240px; }
.toggle { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; padding-bottom: 10px; }
.status { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.status.working { color: var(--accent); }
.status.ok { color: var(--ok); }
.status.error { color: var(--err); }
.log { max-height: 300px; overflow: auto; background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin: 0; font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.result-head { display: flex; gap: 16px; align-items: center; }
#thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.model-name { font-size: 17px; font-weight: 700; }
.muted { color: var(--muted); font-size: 13px; margin: 2px 0; }
.stats { margin: 16px 0; font-weight: 600; }
.files { display: grid; gap: 10px; }
.file-btn { text-align: left; border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: 11px 14px; font: inherit; cursor: pointer; color: var(--accent); }
.file-btn:hover { border-color: var(--accent); background: #f8fbff; }
.info-card h3 { margin: 0 0 8px; font-size: 15px; }
.info-card p { margin: 0 0 8px; color: #374151; }
[hidden] { display: none !important; }
