:root{--sky:#dfe7ee;--paper:#f5f7f9;--line:#c3cdd6;--ink:#1b2a34;--stone:#646464;--nxt:#d67923;--red:#b40000;--yellow:#fac80a;--blue:#1e5aa8;--green:#00852b;font-variant-numeric:tabular-nums;color:var(--ink);font-family:DIN Alternate,Bahnschrift,Roboto Condensed,Helvetica Neue,Arial,sans-serif;font-size:14px}*{box-sizing:border-box}body{background:var(--paper);margin:0}.builder{grid-template:auto minmax(0,1fr)/300px minmax(0,1fr) 350px;height:100vh;display:grid}h2{margin:0 0 8px;font-size:1.15rem;font-weight:700}h3{color:var(--stone);margin:14px 0 4px;font-size:1rem;font-weight:700}button,input,select{font:inherit;color:inherit}button{border:1px solid var(--stone);cursor:pointer;background:#fff;border-radius:3px;padding:4px 10px}button:hover:not(:disabled){background:var(--sky)}button:disabled{opacity:.45;cursor:default}button.primary{border-color:var(--nxt);background:var(--nxt);font-weight:700}button.primary:hover:not(:disabled){background:#e58d3c}button.link{color:var(--blue);background:0 0;border:0;padding:0;text-decoration:underline}input[type=text],input[type=number],input[type=search],select{border:1px solid var(--line);background:#fff;border-radius:3px;padding:3px 6px}input[type=number]{width:4.4em}:focus-visible{outline:2px solid var(--blue);outline-offset:1px}.toolbar{border-bottom:1px solid var(--line);flex-wrap:wrap;grid-column:1/-1;align-items:center;gap:6px 18px;padding:8px 12px;display:flex}.toolbar .group{gap:4px;display:flex}.toolbar .primary{margin-left:auto}.robot-name{font-weight:700}.robot-name input{width:11em;margin-left:6px;font-weight:400}.palette{border-right:1px solid var(--line);flex-direction:column;min-height:0;padding:10px 0 0 12px;display:flex}.palette input[type=search]{margin-right:12px}#palette-list{flex:1;padding:0 12px 12px 0;overflow-y:auto}.part{text-align:left;background:0 0;border-color:#0000;grid-template-columns:2.6em 48px minmax(0,1fr);align-items:center;gap:8px;width:100%;padding:2px 6px;display:grid}.part .left{text-align:right;font-size:1.15rem;font-weight:700}.part img{width:48px;height:48px;display:block}.part .use{color:var(--stone);font-size:.9rem;display:block}.part.over .left,.part.over .use{color:var(--red)}.part.placing{border-color:var(--nxt);background:#fff}.stage{background:var(--sky);min-width:0;min-height:0;position:relative}#view{position:absolute;inset:0}#view canvas{display:block}.view-options{flex-wrap:wrap;align-items:center;gap:4px 16px;display:flex;position:absolute;top:10px;left:12px}.hint{border-left:4px solid var(--stone);background:#f5f7f9eb;max-width:72ch;margin:0;padding:6px 10px;position:absolute;bottom:10px;left:12px;right:12px}.hint:empty{display:none}.hint.problem{border-color:var(--red);white-space:pre-line}.inspector{border-left:1px solid var(--line);min-height:0;padding:10px 12px;overflow-y:auto}.inspector section{border-bottom:1px solid var(--line);margin-bottom:14px;padding-bottom:14px}.inspector p{max-width:44ch;margin:0 0 8px;line-height:1.4}.quiet{color:var(--stone)}.title{font-weight:700}.row{flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:6px;display:flex}.row label{align-items:center;gap:4px;display:flex}.row input[type=text]{flex:1;min-width:6em}.body{border-top:1px solid var(--line);padding:8px 0 2px}.dot{border-radius:50%;width:12px;height:12px}dl{grid-template-columns:auto 1fr;gap:4px 12px;margin:0 0 10px;display:grid}dt{color:var(--stone)}dd{margin:0}.checks{margin:0;padding:0;list-style:none}.checks li{border-left:4px solid var(--blue);margin-bottom:8px;padding-left:10px;line-height:1.4}.checks li.error{border-color:var(--red)}.checks li.error strong{color:var(--red)}.checks li.warning{border-color:var(--yellow)}.pass{border-left:4px solid var(--green);padding-left:10px}#credits{color:var(--stone);font-size:.85rem;line-height:1.4}@media (width<=900px){.builder{flex-direction:column;height:auto;display:flex}.stage{order:1;height:62vh}.palette{border-right:0;border-top:1px solid var(--line);order:2;max-height:60vh}.inspector{border-left:0;border-top:1px solid var(--line);order:3}}.page-link{white-space:nowrap;margin-left:auto}
