:root { --bg:#0f1115; --panel:#181b22; --fg:#e8e8ea; --mut:#9aa0aa; --acc:#4fb3ff; --ok:#46c37b; --bad:#ff6b6b; }
* { box-sizing: border-box; }
body { margin:0; font:15px/1.45 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background:var(--bg); color:var(--fg); }
header, footer { max-width:1200px; margin:0 auto; padding:16px; }
header h1 { margin:0 0 6px; font-size:26px; }
.sub { margin:0 0 4px; } .note, footer { color:var(--mut); font-size:13px; }
a { color:var(--acc); }
main { max-width:1200px; margin:0 auto; padding:0 16px; display:grid; grid-template-columns: 320px 1fr; gap:14px; }
.panel { background:var(--panel); border-radius:10px; padding:14px; }
.tables { grid-column: 1 / -1; }
.row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
button { background:#2a2f3a; color:var(--fg); border:1px solid #3a4150; border-radius:8px; padding:8px 12px; cursor:pointer; font-size:14px; }
button.primary { background:var(--acc); color:#04121e; border:none; font-weight:600; }
button:disabled { opacity:.5; cursor:not-allowed; }
.status { color:var(--mut); font-size:13px; }
progress { width:100%; margin-top:8px; }
.examples { display:grid; grid-template-columns: repeat(3, 1fr); gap:6px; }
.examples button { padding:4px; display:flex; flex-direction:column; align-items:center; gap:4px; font-size:12px; }
.examples img { width:100%; border-radius:6px; aspect-ratio: 4/3; object-fit: cover; }
.upload { display:block; margin:10px 0; font-size:13px; color:var(--mut); }
.opts { margin:10px 0; font-size:13px; } .opts label { display:block; margin:6px 0; }
#run-btn { width:100%; margin-top:8px; }
canvas { width:100%; height:auto; background:#000; border-radius:8px; }
.summary { font-size:16px; margin:10px 0 0; }
#result { font-size:13px; color:var(--mut); margin-top:6px; }
table { width:100%; border-collapse: collapse; font-size:13px; margin-bottom:10px; }
th, td { text-align:left; padding:4px 6px; border-bottom:1px solid #2a2f3a; vertical-align: top; }
.swatch { display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:6px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size:12px; white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow:auto; }
@media (max-width: 800px) { main { grid-template-columns: 1fr; } }
