* { box-sizing: border-box; }
body { margin:0; font-family: -apple-system,"Segoe UI","Microsoft YaHei",sans-serif; background:#f4f6f9; color:#1f2937; }
header { background:#1f2937; color:#fff; padding:14px 28px; display:flex; align-items:center; justify-content:space-between; }
header .brand { font-size:19px; font-weight:700; }
header .brand small { font-size:12px; font-weight:400; color:#9ca3af; margin-left:10px; }
header nav a { color:#d1d5db; text-decoration:none; margin-left:22px; }
header nav a:hover { color:#fff; }
main { max-width:1280px; margin:24px auto; padding:0 20px; }
.flash { background:#fef3c7; border:1px solid #f59e0b; padding:12px 16px; border-radius:8px; margin-bottom:16px; }
.grid { display:grid; grid-template-columns: 440px 1fr; gap:20px; align-items:start; }
.card { background:#fff; border-radius:12px; padding:20px; box-shadow:0 2px 12px rgba(0,0,0,.06); }
.card h2 { margin:0 0 16px; font-size:18px; }
.card h2 small { font-size:12px; color:#6b7280; font-weight:400; margin-left:8px; }
.card h3 { font-size:14px; margin:18px 0 8px; color:#374151; }
.field { margin-bottom:14px; }
.field label { display:block; font-size:13px; font-weight:600; margin-bottom:6px; color:#374151; }
.field input[type=text], .field input[type=number], .field input[type=file], .field select {
  width:100%; padding:8px 10px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; background:#fff;
}
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip input { display:none; }
.chip span { display:inline-block; padding:7px 13px; border:1px solid #d1d5db; border-radius:20px; font-size:13px; cursor:pointer; }
.chip input:checked + span { background:#2563eb; border-color:#2563eb; color:#fff; }
.hint { font-size:12px; color:#6b7280; margin:6px 0 0; line-height:1.5; }
.params { border-top:1px dashed #e5e7eb; margin-top:14px; padding-top:6px; }
.params-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.param label { display:block; font-size:12px; color:#6b7280; margin-bottom:4px; }
.param input, .param select { width:100%; padding:6px 8px; border:1px solid #d1d5db; border-radius:5px; font-size:13px; }
button.primary { width:100%; padding:11px; background:#2563eb; color:#fff; border:0; border-radius:7px; font-size:15px; font-weight:600; cursor:pointer; margin-top:10px; }
button.primary:hover { background:#1d4ed8; }
button.danger { background:#dc2626; color:#fff; border:0; border-radius:5px; padding:4px 9px; cursor:pointer; font-size:12px; }
.result-img { width:100%; max-height:560px; object-fit:contain; background:#0b0b0b; border-radius:8px; }
.empty { color:#9ca3af; text-align:center; padding:60px 10px; line-height:1.8; }
table { border-collapse:collapse; width:100%; font-size:13px; }
table.metrics th, table.metrics td { border:1px solid #e5e7eb; padding:6px 9px; text-align:left; }
table.metrics th { background:#f3f4f6; color:#374151; width:38%; }
table.list th, table.list td { border-bottom:1px solid #e5e7eb; padding:8px; text-align:left; }
table.list th { background:#f3f4f6; }
.thumb { width:64px; height:44px; object-fit:cover; border-radius:4px; }
.ellip { max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.two-col { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
a { color:#2563eb; }
@media (max-width:900px){ .grid,.two-col { grid-template-columns:1fr; } }
