/* Sequencer: stone surfaces and restrained controls consistent with wheel.css. */
#mw-sequencer{width:100%;max-width:880px;margin:8px auto 0;color:#fff;font-family:"Palatino Linotype",Palatino,"Book Antiqua",serif;background:linear-gradient(165deg,color-mix(in srgb,var(--mws-tile-color,#777) 53%,#29292d),color-mix(in srgb,var(--mws-tile-color,#777) 23%,#101013));border:1px solid color-mix(in srgb,var(--mws-tile-color,#777) 55%,#444);border-radius:8px;padding:8px;box-shadow:inset 0 0 12px #0008}
#mw-sequencer[hidden],#key-rows[hidden]{display:none!important}
#mw-sequencer .mws-toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:8px}
#mw-sequencer .mws-heading{font-weight:bold;letter-spacing:.04em;margin-right:auto}
#mw-sequencer .mws-meter{font-size:12px;color:#ccc}
#mw-sequencer button{font:inherit;color:#eee;cursor:pointer}
#mw-sequencer .mws-toolbar button{border:1px solid #555;border-radius:5px;background:#202024;padding:5px 8px;font-size:12px}
#mw-sequencer .mws-toolbar button[aria-pressed="true"]{border-color:#b4cce6;color:#d8ecff}
#mw-sequencer .mws-scroll{width:100%;overflow-x:auto;overflow-y:auto;max-height:none;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none}
#mw-sequencer .mws-grid{min-width:0;width:100%}
#mw-sequencer .mws-row{display:flex;min-height:27px;align-items:stretch}
#mw-sequencer .mws-pitch{width:39px;flex:none;display:flex;align-items:center;justify-content:center;font-size:12px;color:#ddd;border-bottom:1px solid #ffffff12}
#mw-sequencer .mws-track{display:grid;grid-template-columns:repeat(var(--mws-columns,16),minmax(0,1fr));flex:1;min-width:0;gap:1px;touch-action:none}
#mw-sequencer .mws-cell{min-width:0;min-height:26px;padding:0;border:1px solid #ffffff12;background:#09090c;border-radius:2px;position:relative;touch-action:none}
#mw-sequencer .mws-cell.mws-beat{margin-left:3px}
#mw-sequencer .mws-cell.mws-bar{margin-left:6px}
#mw-sequencer .mws-cell.mws-filled{background:color-mix(in srgb,var(--mws-note) 62%,#15151b);border-color:var(--mws-note);border-radius:1px}
#mw-sequencer .mws-cell.mws-onset:after{content:"";position:absolute;left:2px;top:50%;transform:translateY(-50%);width:7px;height:7px;border-radius:50%;background:#fff;box-shadow:0 0 3px var(--mws-note)}
#mw-sequencer .mws-cell.mws-current{outline:1px solid #fff;outline-offset:-1px}
@media(max-width:420px){#mw-sequencer{padding:5px}#mw-sequencer .mws-pitch{width:29px;font-size:10px}#mw-sequencer .mws-cell{min-height:26px}#mw-sequencer .mws-cell.mws-beat{margin-left:2px}#mw-sequencer .mws-cell.mws-bar{margin-left:3px}#mw-sequencer .mws-toolbar button{padding:5px}}

#mw-sequencer .mws-scroll::-webkit-scrollbar{display:none;width:0;height:0}
#mw-sequencer .mws-pitch{touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
#mw-sequencer .mws-pitch:active{cursor:grabbing}
/* Per-tile progression routing; keeps chord tiles visible above the editor. */
#mw-sequencer .mws-route-label{display:inline-flex;align-items:center;gap:4px;color:#ddd;font-size:12px;white-space:nowrap}
#mw-sequencer .mws-repeats,#mw-sequencer .mws-destination{font:inherit;font-size:12px;color:#eee;background:#202024;border:1px solid #555;border-radius:5px;padding:5px 3px;min-height:29px}
#mw-sequencer .mws-repeats{width:48px}
#mw-sequencer .mws-destination{max-width:118px}
