:root { --bg:#262626; --panel:#323232; --line:#444; --text:#ddd; --dim:#999; --ok:#4caf50; --ng:#e05555; --acc:#46a0ff; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text); font:13px/1.5 "Yu Gothic UI","Meiryo",sans-serif; }
header { padding:10px 16px; background:#1c1c1c; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:5; }
header h1 { font-size:15px; margin:0 0 4px; }
.status span { margin-right:14px; color:var(--dim); }
.status b { color:var(--text); }
main { padding:12px 16px; display:grid; gap:14px; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); }
@media (max-width:900px){ main { grid-template-columns:1fr; } }
section { background:var(--panel); border:1px solid var(--line); border-radius:6px; padding:10px 12px; }
section h2 { font-size:14px; margin:0 0 6px; }
.note { color:var(--dim); font-size:12px; margin:4px 0 8px; }
table { width:100%; border-collapse:collapse; }
th, td { text-align:left; padding:3px 6px; border-bottom:1px solid var(--line); vertical-align:top; }
th { color:var(--dim); font-weight:normal; font-size:12px; }
tr.group td { background:#2a2a2a; color:var(--acc); font-weight:bold; padding-top:8px; }
td.key { font-family:Consolas,monospace; white-space:nowrap; }
td.res { width:4.5em; text-align:center; font-weight:bold; }
.ok { color:var(--ok); } .ng { color:var(--ng); } .wait { color:var(--dim); }
tr.danger td.key { color:#ffb347; }
tr.flash { background:#3a4a5a; }
button { background:#444; color:var(--text); border:1px solid #555; border-radius:4px; padding:5px 10px; cursor:pointer; font:inherit; }
button:hover { background:#505050; }
#log { height:120px; overflow:auto; background:#1c1c1c; padding:6px; font-family:Consolas,monospace; font-size:12px; border-radius:4px; }
canvas { display:block; width:100%; height:260px; background:#fff; border-radius:4px; cursor:default; }
textarea { width:100%; height:140px; background:#1c1c1c; color:var(--text); border:1px solid var(--line); font-family:Consolas,monospace; font-size:12px; }
.row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin:6px 0; }
#swatch { width:80px; height:40px; border-radius:4px; border:1px solid #666; }
