/* Live workspaces reuse the existing palette and controls. */
.cw2-loading { max-width: 620px; margin: 12vh auto; padding: 28px; line-height: 1.7; color: var(--ui-text,#e6edf1); }
.cw2-loading a { display: inline-block; margin: 16px; color: inherit; }
.cw2-connection { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; margin-bottom:16px; padding:10px 14px; border:1px solid var(--ui-line,#38434b); border-radius:12px; color:var(--ui-muted,#bbc7d0); font-size:12px; }
.cw2-connection button { min-height:34px; padding:6px 12px; }
#demo-root[aria-busy="true"] { cursor:progress; }
.pbody .cw2-connection { margin:0 0 12px; padding:8px 10px; }
#demo-root .demo-notice[hidden] { display:none; }
.cw2-record-updated { outline:2px solid var(--ui-accent,#b8d4df); outline-offset:4px; }
#demo-root.cw2-live .cw2-list-search {
  display: flex; flex-wrap: wrap; align-items: end; gap: 10px 12px;
  margin: 0 0 18px; padding: 0 0 14px; border-bottom: 1px solid var(--ui-line);
}
#demo-root.cw2-live .cw2-search-field {
  display: grid; flex: 1 1 280px; max-width: 560px; gap: 6px;
  color: var(--ui-text); font-size: 12px; font-weight: 650;
}
#demo-root.cw2-live .cw2-search-field .demo-control { width: 100%; min-height: 40px; font-weight: 400; }
#demo-root.cw2-live .cw2-list-search > button { min-height: 40px; }
#demo-root.cw2-live .cw2-result-count {
  align-self: center; margin: 23px 0 0 auto; color: var(--ui-muted);
  font-size: 12px; font-variant-numeric: tabular-nums;
}
#demo-root.cw2-live .cw2-search-empty {
  flex-basis: 100%; margin: 0; padding: 12px 0 0; color: var(--ui-text); font-size: 13px;
}
body.demo-mode #demo-root.cw2-live .demo-btn.cw2-primary-action:not(.danger) {
  border-color: var(--ui-accent); background: var(--ui-accent); color: var(--ui-accent-ink); font-weight: 700;
}
body.demo-mode #demo-root.cw2-live .demo-btn.cw2-primary-action:not(.danger):hover:not(:disabled) {
  background: var(--ui-accent-hover); color: var(--ui-accent-hover-ink);
}
#demo-root.cw2-live .cw2-needs-attention > .demo-card-head,
#demo-root.cw2-live .cw2-needs-attention > td:nth-child(2) { border-inline-start: 3px solid var(--ui-warning); padding-inline-start: 12px; }
#demo-root.cw2-live .demo-chip:is(.review_required, .work_completed) { font-weight: 750; border: 1px solid currentColor; }
#demo-root.cw2-live [data-order-card] [data-work-form] { margin-top: 16px; }
#demo-root.cw2-live [data-order-card] .demo-actions { gap: 10px; }
#demo-root.cw2-live .demo-note { line-height: 1.6; }
#demo-root.cw2-live .ux-guide { margin-block: 8px; }
@media (max-width: 560px) {
  #demo-root.cw2-live .cw2-search-field { flex-basis: 100%; max-width: none; }
  #demo-root.cw2-live .cw2-result-count { margin-top: 0; }
}
