.seq-hero svg {max-width:290px;margin:auto}
.seq-figure svg {max-width:290px;margin:auto}
#seq-app [hidden] {display:none!important}
#seq-controls select {font:inherit;width:100%;max-width:400px;margin:6px 0 12px;padding:10px;border:1px solid #9db4c6;border-radius:10px;background:white;color:#17314c}
.seq-workspace {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:20px;align-items:start}
.seq-workspace>* {min-width:0}
#seq-board {max-width:420px;margin:auto}
.seq-position {font-size:.9rem;font-weight:700;margin:10px 0;color:#17314c}
.seq-palette {display:flex;flex-direction:column;gap:8px;margin-bottom:20px}
.seq-block {display:block;text-align:left;padding:10px 14px;border:0;border-radius:8px;color:white;font:inherit;font-weight:700;overflow-wrap:anywhere;line-height:1.35;min-height:44px}
.seq-move {background:#135c99}.seq-turn {background:#914810}
.seq-palette button:focus-visible,#seq-program button:focus-visible,.seq-actions button:focus-visible {outline:3px solid #0b756c;outline-offset:3px}
#seq-program {list-style:none;padding:0;display:grid;gap:9px;margin:0 0 12px;max-height:430px;overflow:auto;overscroll-behavior:contain}
#seq-program li {border:1px solid #cadce9;border-radius:10px;padding:7px;display:grid;grid-template-columns: minmax(0,1fr);gap:5px;background:#f6fafc}
#seq-program li.seq-current {outline:3px solid #0b756c;outline-offset:-3px;background:#e1f4ec}
#seq-program li.seq-failed {outline:3px solid #ad3d3d;outline-offset:-3px;background:#fff0eb}
.seq-reorder {display:flex;flex-wrap:wrap;gap:5px}
.seq-reorder button {border:1px solid #9db4c6;border-radius:7px;background:white;color:#17314c;padding:5px 8px;min-height:40px;font-size:.83rem}
#seq-controls button:disabled {opacity:.55;cursor:not-allowed}
.seq-actions {display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 8px}
#seq-status {min-height:3em;overflow-wrap:anywhere}
@media(max-width:720px){.seq-workspace{grid-template-columns:1fr}.seq-actions>*{flex:1 1 125px}.seq-reorder button{flex:1 1 auto}}
