/* The sewing order list (sequence.js). Over 720 px it covers the setup column and stops above its dock, so Make
   the stitches and the busy bar stay in view; 720 px and under it sits under the preview. */
.work { position: relative; }
.panel.left { grid-column: 1; grid-row: 1; }
.seq-panel { grid-column: 1; grid-row: 1; z-index: 4; margin-bottom: var(--seq-dock, 96px); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0; }
.seq-panel[hidden] { display: none; }
.seq-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.seq-top h2 { margin-top: 0; }
.seq-bar { position: sticky; top: -16px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0; background: var(--surface); }
.seq-bar button[aria-disabled="true"] { opacity: .5; }
.seq-msg { min-height: 1.2em; }
.seq-msg.seq-why { color: var(--warn); }
.seq-list { list-style: none; margin: 4px 0 0; padding: 0; overflow-y: auto; flex: 1; min-height: 120px; }
.seq-head { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; font-size: 13.5px; color: var(--gold); font-weight: 600; }
.seq-head i { width: 14px; height: 14px; border-radius: 3px; flex: none; border: 1px solid var(--line); }
.seq-head.seq-locked { color: var(--muted); font-weight: 400; }
.seq-sub { margin: 6px 0 2px 4px; font-size: 12.5px; color: var(--muted); }
.seq-row { display: grid; grid-template-columns: 18px 22px 10px 32px 1fr auto; gap: 6px; align-items: center; padding: 3px 6px; border-radius: 6px;
  cursor: pointer; touch-action: pan-y; border: 1px solid transparent; }
.seq-row:hover, .seq-row:focus { background: var(--surface-2); outline: none; border-color: var(--line); }
.seq-row[aria-selected="true"] { background: #1D2B34; border-color: var(--brand); }
.seq-row i { width: 10px; height: 22px; border-radius: 3px; }
.seq-row canvas { width: 32px; height: 32px; background: var(--cloth); border-radius: 4px; }
.seq-n { color: var(--muted); font-size: 12.5px; text-align: right; }
.seq-what { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.seq-what span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.seq-st { color: var(--muted); font-size: 12.5px; }
.seq-handle { width: 18px; height: 28px; cursor: grab; touch-action: none; border-radius: 4px;
  background: radial-gradient(circle, var(--muted) 1.2px, transparent 1.6px) 0 0 / 6px 6px; }
.seq-handle.seq-off { visibility: hidden; pointer-events: none; }
.seq-trim { border-bottom: 1px dashed var(--line); }
.seq-trim::after { content: "trim"; grid-column: 6; font-size: 11px; color: var(--muted); }
.seq-lifted { opacity: .6; }
.seq-drop { box-shadow: inset 0 3px 0 var(--good); }
.seq-nodrop { box-shadow: inset 0 0 0 2px var(--bad); cursor: not-allowed; }
.seq-ro .seq-row { cursor: default; }
@media (pointer: coarse) { .seq-row, .seq-bar button { min-height: 44px; } .seq-handle { width: 44px; height: 44px; } .seq-row { grid-template-columns: 44px 22px 10px 32px 1fr auto; } }
@media (max-width: 720px) {
  .seq-panel { margin: 0; border-right: 0; border-top: 1px solid var(--line); max-height: none; }
  .seq-list { overflow: visible; }
}
