:root{--ink: #111827;--muted: #6b7280;--line: #e5e7eb;--accent: #0f766e;--accent-ink: #0b5e58;--accent-soft: #e7f3f1}*{box-sizing:border-box}html,body,#root{margin:0;height:100%}body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--ink);font-size:13px;background:#f4f5f7;-webkit-font-smoothing:antialiased}.shell{display:grid;grid-template-rows:56px 1fr;height:100%}.top{display:flex;align-items:center;gap:14px;padding:0 14px;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:9px;font-weight:700;font-size:14px;text-decoration:none;color:inherit}.brand .mark{width:28px;height:28px;border-radius:8px;background:var(--accent);display:grid;place-items:center}.brand .mark svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:2.2;stroke-linecap:round}.name{font-weight:600;font-size:14px}.spacer{flex:1}.btn{display:inline-flex;align-items:center;height:34px;padding:0 12px;border-radius:8px;border:1px solid var(--line);background:#fff;font-weight:600;text-decoration:none;color:inherit}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.body{display:grid;grid-template-columns:250px 1fr 280px;min-height:0}.side{background:#fff;border-right:1px solid var(--line);padding:14px;overflow:auto}.side.right{border-right:0;border-left:1px solid var(--line)}.side h3{margin:0 0 10px;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#9ca3af}.tpl{display:block;width:100%;text-align:left;border:1px solid var(--line);border-radius:10px;background:#fff;padding:10px;margin:0 0 8px;cursor:pointer;font:inherit}.tpl:hover{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.tpl small{display:block;color:var(--muted);margin-top:2px}.stage{display:grid;place-items:center;padding:20px;min-width:0}.arena{width:100%;height:100%;max-height:calc(100vh - 100px)}.stat{border:1px solid var(--line);border-radius:10px;padding:9px 10px;margin-bottom:8px}.stat small{display:block;color:var(--muted);font-size:11px}.stat b{font-size:18px}.note{background:#f6f7f9;border-radius:10px;padding:10px 12px;color:var(--muted);line-height:1.5}@media(max-width:900px){.body{grid-template-columns:1fr}.side{border:0}}
