/* The Document Stack — seat tray + drawer seat controls (DOC-D6AA322BA4A0).
   Light theme per design standard v1.2 (--bg #FAFAFA, --text #111, accent
   #2563EB). The tray is a calm bar above the wall; seat chips are drop targets. */

#gce-stack-tray {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  margin: 0 0 10px 0;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13px;
  color: #111827;
}
#gce-stack-tray .stk-title { font-weight: 700; color: #374151; margin-right: 4px; }
#gce-stack-tray .stk-hint { color: #9ca3af; font-style: italic; }

#gce-stack-tray .stk-seat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 190px;
  max-width: 320px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1.5px dashed #cbd5e1;
  background: #fff;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
#gce-stack-tray .stk-seat.stk-filled { border-style: solid; border-color: #2563eb; background: #eff6ff; }
#gce-stack-tray .stk-seat.stk-empty .stk-doc-lbl { color: #9ca3af; font-style: italic; }
#gce-stack-tray .stk-seat.stk-dragover { border-color: #2563eb; background: #dbeafe; }
#gce-stack-tray .stk-side-lbl {
  font-weight: 700; font-size: 11px; text-transform: uppercase;
  letter-spacing: .04em; color: #2563eb;
}
#gce-stack-tray .stk-doc-lbl {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px;
}
#gce-stack-tray .stk-clear {
  border: none; background: transparent; color: #9ca3af; cursor: pointer;
  font-size: 13px; line-height: 1; padding: 0 2px;
}
#gce-stack-tray .stk-clear:hover { color: #dc2626; }

#gce-stack-tray .stk-swap,
#gce-stack-tray .stk-compare {
  border: 1px solid #d1d5db; background: #fff; color: #111827;
  border-radius: 7px; padding: 5px 12px; cursor: pointer; font-size: 12px; font-weight: 600;
}
#gce-stack-tray .stk-compare { border-color: #2563eb; color: #2563eb; }
#gce-stack-tray .stk-swap:hover { background: #f3f4f6; }
#gce-stack-tray .stk-compare:hover { background: #eff6ff; }

/* Review together (operator DOC-7AF157A22037): count-aware primary action */
#gce-stack-tray .stk-review {
  border: 1px solid #2563eb; background: #2563eb; color: #fff;
  border-radius: 7px; padding: 5px 12px; cursor: pointer; font-size: 12px; font-weight: 700;
  margin-left: 4px;
}
#gce-stack-tray .stk-review:hover { background: #1d4ed8; }
#gce-stack-tray .stk-review.stk-review-off,
#gce-stack-tray .stk-review[disabled] {
  background: #fff; color: #9ca3af; border-color: #e5e7eb; cursor: default;
}
/* include toggle on each seat: ✓ = in the read, ☐ = left out (kept seated) */
#gce-stack-tray .stk-inc {
  border: 1px solid #cbd5e1; background: #fff; color: #9ca3af;
  border-radius: 5px; width: 20px; height: 20px; line-height: 1; padding: 0;
  cursor: pointer; font-size: 12px; flex: 0 0 auto;
}
#gce-stack-tray .stk-inc:hover { border-color: #2563eb; }
#gce-stack-tray .stk-inc.stk-inc-on { background: #2563eb; border-color: #2563eb; color: #fff; }

/* per-card seat controls in the drawer */
.stk-card-ctrls { display: inline-flex; gap: 2px; margin-left: 4px; }
.stk-card-ctrls .stk-mini {
  border: 1px solid #d1d5db; background: #fff; color: #6b7280;
  border-radius: 5px; width: 20px; height: 20px; line-height: 1; padding: 0;
  cursor: pointer; font-size: 11px;
}
.stk-card-ctrls .stk-mini:hover { border-color: #2563eb; color: #2563eb; }
.stk-card-ctrls .stk-mini.stk-on { background: #2563eb; border-color: #2563eb; color: #fff; }

/* SEAT HIGHLIGHT REMOVED (operator 2026-08-22): the legacy left/right seat marker highlighted a
   drawer card independent of what's rendered, so a stray card on another row lit up alongside the
   rendered focus row. In the grid model the drawer highlight is driven ONLY by the render-focus
   (.active = the row currently in view), so the seat badge + inset bar are gone. */
