/**
 * PRDNA Canonical Bucket — shared visual owner.
 * Mounted first on PRDNA Business (Command). Account + Customer reuse later.
 * Case-card contract matches customer Tracker `.tracker-case-card`.
 */
:root {
  --pcb-green: #00A854;
  --pcb-teal: #128C7E;
  --pcb-text: #111827;
  --pcb-muted: #6b7280;
  --pcb-meta: #9ca3af;
  --pcb-border: #e5e7eb;
  --pcb-surface: #ffffff;
  --pcb-wash: #f9fafb;
  --pcb-green-soft: #ecfdf5;
  --pcb-green-mid: #d1fae5;
  --pcb-radius-card: 14px;
  --pcb-radius-ctl: 12px;
  --pcb-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 20px rgba(15, 23, 42, 0.06);
}

.pcb-root {
  color: var(--pcb-text);
  min-width: 0;
}

.pcb-capability-slot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
/* Landing Row 2 layout owner only — transparent (no shared outer card chrome). */
.pcb-landing-toolbar {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.pcb-landing-toolbar-main,
.pcb-landing-controls {
  /* Locked order: Search Services… (flexes) | Sort (flush right) */
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  width: 100%;
  max-width: none;
  flex-wrap: nowrap !important;
  box-sizing: border-box;
}
.pcb-landing-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
}
.pcb-landing-sort-wrap {
  position: relative;
  min-width: 0;
  flex-shrink: 0;
  justify-self: end;
}
.pcb-landing-service-search {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--pcb-border);
  background: #fff;
  color: var(--pcb-text);
  border-radius: 999px;
  padding: 8px 28px 8px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.pcb-landing-service-search::placeholder {
  color: #9ca3af;
  font-weight: 500;
}
.pcb-landing-search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.pcb-landing-sort-wrap,
.pcb-landing-controls > .pcb-ai-summary-btn {
  flex-shrink: 0;
}
@media (max-width: 430px) {
  .pcb-landing-controls .pcb-sort-trigger,
  .pcb-landing-controls .pcb-ai-summary-btn {
    padding-left: 8px;
    padding-right: 8px;
    white-space: nowrap;
  }
}
.pcb-landing-sort-wrap {
  position: relative;
  min-width: 0;
  flex-shrink: 0;
  justify-self: end;
}
.pcb-sort-trigger { width: 100%; }
.pcb-sort-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  min-width: 160px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--pcb-border);
  background: var(--pcb-surface);
  box-shadow: var(--pcb-shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pcb-sort-menu[hidden],
.pcb-sort-menu.hidden { display: none !important; }
.pcb-sort-option {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--pcb-text);
}
.pcb-sort-option.is-active,
.pcb-sort-option:hover { background: var(--pcb-green-soft); color: #047857; }
.pcb-ai-summary-btn {
  border-color: rgba(0, 168, 84, 0.35);
  color: #047857;
  min-width: 0;
}
.pcb-ctl-label {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.15;
  text-align: center;
}
/*
 * Sticky controls (shared architecture):
 * - Landing: category + Search|Sort (#prdnaBucketLandingStickyControls)
 * - Service: rows 1–3 (#prdnaBucketStickyControls)
 * Scroll owner: #commandScrollArea (green/search shell outside → top:0).
 * Desktop: unchanged production geometry.
 * Mobile gap: L4 reserves padding-top:2.25rem on #commandScrollArea for fixed
 * #commandHeaderWrap, but PCB hides that header — zero that spacer on landing+service.
 * Stacking: cards < sticky (25) < sort/filter/AI popups (40–80).
 */
#prdnaBucketStickyControls.pcb-svc-sticky-controls,
.pcb-svc-sticky-controls[data-pcb-sticky-controls="1"],
#prdnaBucketLandingStickyControls.pcb-landing-sticky-controls,
.pcb-landing-sticky-controls[data-pcb-landing-sticky="1"] {
  position: sticky;
  top: 0;
  z-index: 25;
  /* Bleed into commandGroupsPanel p-3 / sm:p-4 so cards cannot show beside the bar */
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  padding: 6px 0.75rem 10px;
  /* App top chrome stays clear; Library glass is prdna-canonical-gloss.css */
  pointer-events: auto;
}
@media (min-width: 640px) {
  #prdnaBucketStickyControls.pcb-svc-sticky-controls,
  .pcb-svc-sticky-controls[data-pcb-sticky-controls="1"],
  #prdnaBucketLandingStickyControls.pcb-landing-sticky-controls,
  .pcb-landing-sticky-controls[data-pcb-landing-sticky="1"] {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
/* Mobile only: seal sticky to persistent search/header. Desktop rules above stay intact. */
@media (max-width: 767px) {
  #tab-command.pcb-bucket-landing[data-pcb-surface="landing"] #commandScrollArea,
  #tab-command.pcb-bucket-landing[data-pcb-surface="service"] #commandScrollArea {
    /* Cancel L4 breadcrumb reserve; keep live top-bar clearance. */
    padding-top: var(--cc-top-bar-offset) !important;
    border-top-width: 0 !important;
    border-top-color: transparent !important;
  }
  #tab-command.pcb-bucket-landing[data-pcb-surface="landing"] #commandGroupsPanel.pcb-landing-wrap,
  #tab-command.pcb-bucket-landing[data-pcb-surface="service"] #commandGroupsPanel.pcb-landing-wrap {
    padding-top: 0 !important;
  }
  #prdnaBucketStickyControls.pcb-svc-sticky-controls,
  .pcb-svc-sticky-controls[data-pcb-sticky-controls="1"],
  #prdnaBucketLandingStickyControls.pcb-landing-sticky-controls,
  .pcb-landing-sticky-controls[data-pcb-landing-sticky="1"] {
    /* Keep sticky top:0 — scrollport now begins flush under shell. */
    padding-top: 0;
  }
  #prdnaBucketStickyControls .pcb-svc-summary-row,
  #prdnaBucketStickyControls .pcb-svc-row1,
  #prdnaBucketLandingStickyControls .pcb-switcher {
    padding-top: 6px;
  }
}
/* Landing sticky: keep Search|Sort toolbar spacing tight inside the shared sticky owner */
#prdnaBucketLandingStickyControls .pcb-landing-toolbar {
  margin-top: 8px;
  margin-bottom: 0;
}
#prdnaBucketLandingStickyControls .pcb-switcher {
  margin-bottom: 0;
}
/* Keep row margins compact inside sticky owner */
#prdnaBucketStickyControls .pcb-svc-row2,
#prdnaBucketStickyControls .pcb-svc-row3 {
  margin-top: 0.5rem;
}
#prdnaBucketStickyControls .pcb-svc-summary-row,
#prdnaBucketStickyControls .pcb-svc-row1 {
  margin-bottom: 0;
}

.pcb-svc-summary-row,
.pcb-svc-row1 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  margin: 12px 0 10px;
  flex-wrap: nowrap !important;
  overflow-x: visible !important;
  overflow: visible !important;
}
.pcb-svc-priority-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.pcb-priority-stage {
  min-width: 0;
  min-height: 88px;
  border: 1px solid var(--pcb-border);
  background: var(--pcb-wash);
  color: var(--pcb-text);
  border-radius: 14px;
  padding: 12px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  text-align: left;
}
.pcb-priority-stage .pcb-priority-count {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.pcb-priority-stage .pcb-ctl-label {
  font-size: 13px;
  font-weight: 800;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.pcb-priority-blurb {
  font-size: 11px;
  font-weight: 600;
  color: var(--pcb-muted);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.pcb-priority-stage--start {
  color: #c2410c;
  border-color: rgba(234, 88, 12, 0.55);
  background: rgba(234, 88, 12, 0.12);
}
.pcb-priority-stage--submit {
  color: #a16207;
  border-color: rgba(234, 179, 8, 0.55);
  background: rgba(234, 179, 8, 0.12);
}
.pcb-priority-stage--review {
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.12);
}
.pcb-priority-stage--submitted {
  color: #047857;
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.12);
}
.pcb-priority-stage.is-active {
  box-shadow: inset 0 0 0 1px currentColor;
  filter: saturate(1.15) brightness(1.05);
}
.pcb-priority-stage--start.is-active { background: rgba(234, 88, 12, 0.22); }
.pcb-priority-stage--submit.is-active { background: rgba(234, 179, 8, 0.22); }
.pcb-priority-stage--review.is-active { background: rgba(59, 130, 246, 0.22); }
.pcb-priority-stage--submitted.is-active { background: rgba(16, 185, 129, 0.22); }
.pcb-priority-count {
  font-size: 10px;
  font-weight: 800;
  color: inherit;
  opacity: 0.9;
}
.pcb-row1-ai {
  width: 100%;
  min-width: 0;
  padding: 6px 4px;
  color: #6d28d9 !important;
  border-color: rgba(139, 92, 246, 0.65) !important;
  background: rgba(139, 92, 246, 0.14) !important;
  font-weight: 800;
}
.pcb-ai-star { margin-right: 2px; }
.pcb-case-tag--bio {
  color: #0f766e;
  border-color: rgba(20, 184, 166, 0.45);
  background: rgba(20, 184, 166, 0.12);
}
.pcb-ai-role-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #6d28d9;
  border: 1px solid rgba(139, 92, 246, 0.55);
  background: rgba(139, 92, 246, 0.14);
  vertical-align: middle;
}
.pcb-ai-summary-popup .pcb-filter-popup-apply {
  background: #059669;
  border-color: #059669;
  color: #fff;
}
.pcb-svc-summary-chips,
.pcb-ai-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pcb-ai-summary-chips { padding: 0 16px 8px; }
.pcb-ai-summary-body {
  white-space: normal;
  font-size: 14px;
  line-height: 1.45;
  min-height: 72px;
}
.pcb-ai-summary-body h3 {
  margin: 10px 0 6px;
  font-size: 14px;
  font-weight: 800;
}
.pcb-ai-summary-body p { margin: 6px 0; }
.pcb-ai-summary-body ul,
.pcb-ai-summary-body ol {
  margin: 6px 0 10px;
  padding-left: 1.25em;
}
.pcb-ai-summary-body li { margin: 4px 0; }
.pcb-ai-summary-body hr {
  border: 0;
  border-top: 1px solid rgba(16, 185, 129, 0.22);
  margin: 12px 0;
}

/* AI Bucket Summary — service-card preview + pop-down drawer */
.pcb-ai-summary-canvas {
  position: relative;
  width: 100%;
  margin: 12px 0 0;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  background:
    linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #ecfdf5 100%);
  box-shadow: var(--pcb-shadow);
  overflow: hidden;
  color: inherit;
}
.pcb-ai-summary-preview {
  display: block;
  position: relative;
  width: 100%;
  min-height: 120px;
  margin: 0;
  padding: 16px 18px 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  text-align: left;
  color: inherit;
}
.pcb-ai-summary-preview .pcb-svc-card-icon {
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 16px;
}
.pcb-ai-summary-preview .pcb-svc-card-name {
  margin-top: 2px;
}
.pcb-ai-summary-preview .pcb-svc-card-sub {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin-top: 6px;
  min-height: 2.4em;
}
.pcb-ai-summary-preview .pcb-svc-card-tags {
  margin-top: 10px;
  min-height: 22px;
}
.pcb-ai-summary-preview .pcb-svc-card-go {
  position: absolute;
  right: 14px;
  bottom: 16px;
  font-size: 22px;
  color: #047857;
  line-height: 1;
}
.pcb-ai-summary-drawer {
  border-top: 1px solid rgba(16, 185, 129, 0.22);
  padding: 12px 14px 14px;
  background: rgba(255, 255, 255, 0.55);
}
.pcb-ai-summary-drawer[hidden] { display: none !important; }
.pcb-ai-summary-drawer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.pcb-ai-summary-drawer-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  flex: 1 1 auto;
  min-width: 0;
}
.pcb-ai-role-pill {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(236, 253, 245, 0.9);
}
.pcb-ai-summary-canvas .pcb-ai-summary-chips {
  padding: 0 0 8px;
}
.pcb-ai-summary-canvas .pcb-ai-summary-body {
  padding: 0;
  margin-bottom: 10px;
  color: var(--pcb-text);
}
.pcb-ai-summary-refresh {
  width: 100%;
}
body.app-theme-dark .pcb-ai-summary-canvas {
  background: linear-gradient(165deg, #1f2937 0%, #111827 100%);
  border-color: #374151;
}
body.app-theme-dark .pcb-ai-summary-preview .pcb-svc-card-name { color: #f9fafb; }
body.app-theme-dark .pcb-ai-summary-preview .pcb-svc-card-sub { color: #9ca3af; }
body.app-theme-dark .pcb-ai-summary-preview .pcb-svc-card-icon {
  background: linear-gradient(145deg, #064e3b, #065f46);
  border-color: rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}
body.app-theme-dark .pcb-ai-summary-preview .pcb-svc-card-go { color: #6ee7b7; }
body.app-theme-dark .pcb-ai-summary-drawer {
  border-top-color: #374151;
  background: rgba(17, 24, 39, 0.65);
}
body.app-theme-dark .pcb-ai-role-pill {
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(0, 168, 84, 0.18);
}
body.app-theme-dark .pcb-ai-summary-canvas .pcb-ai-summary-body { color: #e5e7eb; }
body.app-theme-dark .pcb-ai-summary-canvas .pcb-ai-summary-body h3,
body.app-theme-dark .pcb-ai-summary-canvas .pcb-ai-summary-body strong { color: #f8fafc; }
body.app-theme-dark .pcb-ai-summary-canvas .pcb-ai-summary-body hr { border-top-color: #374151; }

.pcb-landing-toolbar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pcb-muted);
}
.pcb-cap-btn {
  border: 1px solid var(--pcb-border);
  background: var(--pcb-wash);
  color: var(--pcb-text);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.pcb-cap-btn--active {
  border-color: var(--pcb-green);
  color: #047857;
  background: var(--pcb-green-soft);
}
.pcb-landing-sort {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── Category switcher — cell lines (no oval/pill borders) ── */
.pcb-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
  border-bottom: 1px solid var(--pcb-border);
}
.pcb-cat-btn {
  flex: none;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 0;
  border: 0;
  border-right: 1px solid var(--pcb-border);
  background: transparent;
  box-shadow: none;
  color: var(--pcb-text);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: color 0.15s, background 0.15s;
}
.pcb-cat-btn:last-child {
  border-right: 0;
}
.pcb-cat-btn:hover {
  background: rgba(0, 168, 84, 0.06);
}
.pcb-cat-btn:active {
  transform: none;
}
.pcb-cat-btn.is-selected,
.pcb-cat-btn[aria-selected="true"] {
  border-color: transparent;
  border-right-color: var(--pcb-border);
  background: rgba(0, 168, 84, 0.1);
  box-shadow: inset 0 -2px 0 var(--pcb-green);
  color: #065f46;
}
.pcb-cat-btn:last-child.is-selected,
.pcb-cat-btn:last-child[aria-selected="true"] {
  border-right: 0;
}
.pcb-cat-btn .pcb-cat-icon {
  display: none !important;
}
.pcb-cat-btn .pcb-cat-label {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 399px) {
  .pcb-cat-btn {
    font-size: 12px;
    padding: 8px 6px;
  }
}

/* ── Search / filters (PRDNA pill treatment) ── */
.pcb-search-row,
#tab-command.pcb-bucket-landing #commandSearchRow {
  background: var(--pcb-wash) !important;
  border-color: var(--pcb-border) !important;
}
.pcb-search-input,
#tab-command.pcb-bucket-landing #commandSearch {
  background: #fff !important;
  color: var(--pcb-text) !important;
  border-color: #d1d5db !important;
  border-radius: 999px !important;
}
#tab-command.pcb-bucket-landing #commandSearch::placeholder {
  color: #9ca3af !important;
}
.pcb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Landing: hide operational chrome; service: show actions/filters.
   Never force #commandSearchRow when top-bar search mirror is active. */
#tab-command.pcb-bucket-landing[data-pcb-surface="landing"] #commandSearchRow,
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] #commandSearchRow {
  display: none !important;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] #prdnaBucketActions.pcb-svc-actions-legacy:not([hidden]):not(.hidden) {
  display: flex !important;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="landing"] #prdnaBucketActions,
#tab-command.pcb-bucket-landing[data-pcb-surface="landing"] #commandQueueFilterRow {
  display: none !important;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] #commandQueueFilterRow {
  display: grid !important;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] #pcbAiServiceSummaryCanvas {
  display: block;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="landing"] #pcbAiServiceSummaryCanvas {
  display: none !important;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] #prdnaBucketCapabilitySlot {
  display: none !important;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="landing"] #prdnaBucketCapabilitySlot {
  display: flex !important;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="landing"] #prdnaBucketServiceSummary,
#tab-command.pcb-bucket-landing[data-pcb-surface="landing"] #pcbFilterPopupRoot {
  display: none !important;
}
/* Landing: AI summary is canvas drawer — never the service modal */
#tab-command.pcb-bucket-landing[data-pcb-surface="landing"] #pcbAiSummaryPopupRoot {
  display: none !important;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="landing"] #pcbAiSummaryCanvas {
  display: block;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] #pcbAiSummaryCanvas {
  display: none !important;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] #pcbAiSummaryPopupRoot:not([hidden]) {
  display: flex !important;
}
body.cc-search-screen #tab-command.pcb-bucket-landing #commandSearchRow,
body:not(.cc-search-screen) #tab-command.pcb-bucket-landing[data-pcb-surface="service"] #commandSearchRow {
  display: none !important;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="landing"] #prdnaBucketCategorySwitcher {
  display: flex;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] #prdnaBucketCategorySwitcher {
  display: none !important;
}

/* ── Service card grid (bolder landing cards) ── */
.pcb-service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .pcb-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.pcb-svc-card {
  position: relative;
  min-height: 148px;
  width: 100%;
  text-align: left;
  padding: 16px 18px 18px;
  border-radius: 16px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  background:
    linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #ecfdf5 100%);
  box-shadow: var(--pcb-shadow);
  cursor: pointer;
  touch-action: manipulation;
  color: inherit;
}
.pcb-svc-card:hover {
  border-color: rgba(0, 168, 84, 0.45);
  box-shadow: 0 8px 22px rgba(0, 168, 84, 0.12);
}
.pcb-svc-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.pcb-svc-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 18px;
}
.pcb-svc-card-count,
.pcb-service-count {
  font-size: 12px;
  font-weight: 700;
  color: #047857;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.pcb-svc-card-name,
.pcb-svc-screen-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--pcb-text);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.pcb-svc-card-sub {
  font-size: 12px;
  color: var(--pcb-muted);
  margin-top: 4px;
}
.pcb-svc-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.pcb-svc-card-overview,
.pcb-case-overview {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}
.pcb-svc-card-overview h4,
.pcb-case-overview h4 {
  margin: 0 0 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}
.pcb-svc-card-overview p,
.pcb-case-overview p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #111827;
  font-weight: 400;
}
.pcb-svc-card-overview-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}
.pcb-case-fact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pcb-case-story {
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #374151;
  border-radius: 14px;
  background: #161e2e;
  overflow: hidden;
}
.pcb-case-story-kicker {
  padding: 10px 12px 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}
.pcb-case-story-row,
.pcb-case-story-task,
.pcb-case-story-open {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 11px 12px;
  min-height: 44px;
  box-sizing: border-box;
}
.pcb-case-story-row:first-of-type { border-top: 0; }
.pcb-case-story-ico {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: rgba(148,163,184,0.18);
}
.pcb-case-story-row.is-ok .pcb-case-story-ico,
.pcb-case-story-task.is-form .pcb-case-story-ico { background: rgba(16,185,129,0.2); color: #6ee7b7; }
.pcb-case-story-row.is-pay .pcb-case-story-ico,
.pcb-case-story-task.is-pay .pcb-case-story-ico { background: rgba(168,85,247,0.22); color: #d8b4fe; }
.pcb-case-story-row.is-stage .pcb-case-story-ico { background: rgba(59,130,246,0.2); color: #93c5fd; }
.pcb-case-story-task.is-docs .pcb-case-story-ico { background: rgba(239,68,68,0.2); color: #fca5a5; }
.pcb-case-story-lab {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
}
.pcb-case-story-val {
  flex: 0 1 auto;
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
  text-align: right;
}
.pcb-case-story-row.is-ok .pcb-case-story-val { color: #6ee7b7; }
.pcb-case-story-row.is-stage .pcb-case-story-val { color: #93c5fd; }
.pcb-case-story-row.is-pay .pcb-case-story-val { color: #f87171; }
.pcb-case-story-chev { color: #6b7280; font-size: 18px; line-height: 1; }
.pcb-case-story-tasks { border-top: 1px solid rgba(255,255,255,0.1); }
.pcb-case-story-task-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pcb-case-story-task-copy strong { font-size: 14px; font-weight: 800; color: #f8fafc; }
.pcb-case-story-task.is-docs .pcb-case-story-task-copy strong { color: #fca5a5; }
.pcb-case-story-task.is-pay .pcb-case-story-task-copy strong { color: #d8b4fe; }
.pcb-case-story-task.is-form .pcb-case-story-task-copy strong { color: #93c5fd; }
.pcb-case-story-task-copy span { font-size: 12px; color: #9ca3af; }
.pcb-case-story-open {
  justify-content: flex-start;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
}
#acctBusinessWorkspace .acct-info-identity,
#contextMenuDrawer.acct-info-drawer .acct-info-identity {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 16px 0;
  padding: 16px;
  background: #1f2937;
  border: 0;
  border-radius: 14px;
}
#acctBusinessWorkspace .acct-info-identity-copy,
#contextMenuDrawer.acct-info-drawer .acct-info-identity-copy {
  min-width: 0;
  flex: 1 1 0;
  color: #f8fafc;
}
#acctBusinessWorkspace .acct-info-identity-actions,
#contextMenuDrawer.acct-info-drawer .acct-info-identity-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
  width: min(42%, 168px);
  min-width: 118px;
  max-width: 46%;
}
#acctBusinessWorkspace .acct-info-identity-actions .acct-info-view-profile,
#acctBusinessWorkspace .acct-info-identity-actions .acct-info-message,
#contextMenuDrawer.acct-info-drawer .acct-info-identity-actions .acct-info-view-profile,
#contextMenuDrawer.acct-info-drawer .acct-info-identity-actions .acct-info-message {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 12px;
  text-align: center;
}
#acctBusinessWorkspace .acct-info-identity-actions .acct-info-view-profile,
#contextMenuDrawer.acct-info-drawer .acct-info-identity-actions .acct-info-view-profile {
  background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
  border: 1px solid #7c3aed;
  color: #fff;
  box-shadow: 0 1px 3px rgba(109, 40, 217, 0.45);
}
body:not(.app-theme-dark) #contextMenuDrawer.acct-info-drawer .acct-info-identity {
  background: #1f2937;
}
body:not(.app-theme-dark) #contextMenuDrawer.acct-info-drawer .acct-info-identity-actions .acct-info-view-profile {
  background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
  border: 1px solid #7c3aed;
  color: #fff;
}
#acctBusinessWorkspace .acct-ov-order,
#acctInfoCustomerBucketHost .acct-ov-order {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.acct-info-story-sheet {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #1f2937;
  border: 1px solid #374151;
}
.acct-info-story-sheet[hidden] { display: none !important; }
#acctBusinessWorkspace .acct-ov-order-identity,
#acctInfoCustomerBucketHost .acct-ov-order-identity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
}
.pcb-case-fact-row,
.pcb-case-stat {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
body.app-theme-dark .pcb-svc-card-overview,
body.app-theme-dark .pcb-case-overview,
#acctInfoCustomerBucketHost .pcb-svc-card-overview,
#acctInfoCustomerBucketHost .pcb-case-overview,
#acctBusinessWorkspace .pcb-svc-card-overview,
#acctBusinessWorkspace .pcb-case-overview {
  background: #1f2937;
  border-color: #374151;
}
body.app-theme-dark .pcb-svc-card-overview h4,
body.app-theme-dark .pcb-case-overview h4,
#acctInfoCustomerBucketHost .pcb-svc-card-overview h4,
#acctBusinessWorkspace .pcb-svc-card-overview h4 {
  color: #9ca3af;
}
body.app-theme-dark .pcb-svc-card-overview p,
#acctInfoCustomerBucketHost .pcb-svc-card-overview p,
#acctBusinessWorkspace .pcb-svc-card-overview p {
  color: #e5e7eb;
}
body.app-theme-dark .pcb-svc-card-overview-facts,
#acctInfoCustomerBucketHost .pcb-svc-card-overview-facts,
#acctBusinessWorkspace .pcb-svc-card-overview-facts {
  border-top-color: #374151;
}
.pcb-svc-tag,
.pcb-case-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  white-space: nowrap;
}
.pcb-svc-tag--stage, .pcb-case-tag--stage { background: #dbeafe; color: #1e40af; }
.pcb-svc-tag--pay, .pcb-case-tag--pay { background: #dcfce7; color: #166534; }
.pcb-svc-tag--warn, .pcb-case-tag--warn { background: #ffedd5; color: #9a3412; }
.pcb-svc-tag--vip, .pcb-case-tag--vip { background: #ede9fe; color: #6b21a8; }
.pcb-svc-tag--more { background: #e5e7eb; color: #4b5563; }
.pcb-svc-card-go {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-size: 22px;
  color: #047857;
  line-height: 1;
}

/* ── Service screen header ── */
.pcb-svc-screen-head { padding: 4px 0 12px; }
.pcb-back-btn {
  background: none;
  border: 0;
  color: var(--pcb-green);
  font-weight: 700;
  font-size: 14px;
  padding: 4px 0 10px;
  cursor: pointer;
}
.pcb-svc-screen-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

/* Compact Case Stage / Queue / Payment selectors */
.pcb-filter-selects,
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] #commandQueueFilterRow.pcb-filter-selects,
.pcb-svc-row3,
.pcb-svc-filter-cells {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
  overflow: visible !important;
  overflow-x: visible !important;
  flex-wrap: nowrap !important;
  border-radius: 0;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pcb-border);
  width: 100%;
  margin-top: 0;
}
.pcb-svc-filter-cells .pcb-filter-select {
  border-radius: 0 !important;
  border: 0 !important;
  border-right: 1px solid var(--pcb-border) !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 44px;
  padding: 8px 6px;
}
.pcb-svc-filter-cells .pcb-filter-select:last-child {
  border-right: 0 !important;
}
.pcb-svc-filter-cells .pcb-filter-select.is-active,
.pcb-svc-filter-cells .pcb-filter-select[aria-expanded="true"] {
  background: rgba(0, 168, 84, 0.1) !important;
  box-shadow: inset 0 -2px 0 var(--pcb-green);
}
body.app-theme-dark .pcb-svc-filter-cells {
  border-bottom-color: #374151;
}
body.app-theme-dark .pcb-svc-filter-cells .pcb-filter-select {
  border-right-color: #374151 !important;
  color: #f9fafb;
}

/* Service chrome: ← Cases | canonical #commandSearch | A–Z + Refresh (right) */
.pcb-svc-chrome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 4px 0 6px;
  box-sizing: border-box;
}
.pcb-svc-cases-back {
  flex: 0 0 auto;
  padding: 0 2px !important;
  margin: 0 !important;
  white-space: nowrap;
  /* Match Chats title (.pcr-chats-title) */
  font-size: 22px !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}
@media (max-width: 767px) {
  .pcb-svc-cases-back,
  html body#commandBody.layout-command header#ccTopBar #prdnaBucketStickyControls[data-pcb-hosted-top="1"] .pcb-svc-cases-back {
    font-size: 28px !important;
    letter-spacing: -0.03em;
  }
}
.pcb-svc-chrome-mid {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}
.pcb-svc-chrome-mid .pcb-svc-search-input,
.pcb-svc-chrome-mid #commandSearch {
  display: block !important;
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(128, 128, 128, 0.28);
  background: rgba(128, 128, 128, 0.1);
  color: inherit;
  box-sizing: border-box;
}
.pcb-svc-chrome-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 0 0 auto;
  margin-left: 0;
  min-width: 0;
}
.pcb-svc-icon-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(128, 128, 128, 0.28);
  background: rgba(128, 128, 128, 0.1);
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.pcb-svc-icon-svg {
  width: 18px;
  height: 18px;
}
.pcb-svc-icon-order {
  position: relative;
  flex: 0 0 auto;
}
.pcb-svc-icon-order .cc-order-btn {
  width: auto;
  min-width: 34px;
  padding: 0 8px !important;
  gap: 0;
}
.pcb-svc-icon-order .cc-order-btn-caret,
.pcb-svc-icon-order [data-cc-order-label] {
  font-size: 10px;
  line-height: 1;
}
body.app-theme-dark .pcb-svc-icon-btn,
body.app-theme-dark .pcb-svc-chrome-mid #commandSearch {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f3f4f6;
}

/* Archived/Closed: DOM hosts for Scope .click() only — never paint as canvas rows */
#commandQueueArchivedBtn.pcb-svc-arch-closed-host,
#commandQueueClosedBtn.pcb-svc-arch-closed-host,
#tab-command.pcb-bucket-landing #commandQueueArchivedBtn,
#tab-command.pcb-bucket-landing #commandQueueClosedBtn {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
}

/* New case FAB — purple + bubble (separate from Reno AI turtle) */
.pcb-svc-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  z-index: 35;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: #4f46e5;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.35);
  cursor: pointer;
  touch-action: manipulation;
}
.pcb-svc-fab.hidden { display: none !important; }
html body .pcb-svc-fab,
html body#commandBody .pcb-svc-fab,
html body#commandBody.layout-command .pcb-svc-fab,
#tab-command.pcb-bucket-landing[data-pcb-surface="landing"] .pcb-svc-fab {
  display: none !important;
}
html body#commandBody.layout-command .pcr-turtle,
html body#commandBody.layout-command #pcrTurtle,
html body#commandBody.cc-more-open #pcrTurtle,
html body#commandBody.cc-more-open .pcr-turtle {
  display: none !important;
}

.pcb-actions.pcb-svc-row2,
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] #prdnaBucketActions.pcb-svc-row2:not([hidden]):not(.hidden) {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  grid-template-columns: none;
  width: 100%;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] #prdnaBucketActions.pcb-svc-row2[hidden],
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] #prdnaBucketActions.pcb-svc-row2.hidden,
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] #prdnaBucketActions.pcb-svc-actions-legacy[hidden],
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] #prdnaBucketActions.pcb-svc-actions-legacy.hidden {
  display: none !important;
}
#prdnaBucketActions.pcb-svc-row2 > .cc-order-wrap,
#prdnaBucketActions.pcb-svc-row2 > button:not(.hidden):not(.pcb-svc-arch-closed-host) {
  min-width: 0 !important;
  width: 100%;
  justify-self: stretch;
}
/* Category-specific actions stay truly hidden — do not let row2 display:flex override Tailwind .hidden. */
#prdnaBucketActions.pcb-svc-row2 > button.hidden,
#prdnaBucketActions.pcb-svc-row2 #commandCasesRefreshingHint {
  display: none !important;
}
#prdnaBucketActions.pcb-svc-row2 .cc-order-btn,
#prdnaBucketActions.pcb-svc-row2 > button:not(.hidden):not(.pcb-svc-arch-closed-host) {
  white-space: normal;
  line-height: 1.15;
  font-size: 11px;
  padding: 6px 4px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#prdnaBucketActions.pcb-svc-row2 #commandCasesRefresh {
  border-radius: 12px !important;
}
.pcb-filter-select {
  min-width: 0 !important;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 12px;
  border: 1px solid var(--pcb-border);
  background: var(--pcb-surface);
  color: var(--pcb-text);
  text-align: center;
  cursor: pointer;
}
.pcb-filter-select-kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--pcb-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  line-height: 1.1;
  max-height: 2.2em;
  text-align: center;
  width: 100%;
}
.pcb-filter-select-value {
  font-size: 11px;
  font-weight: 700;
  color: var(--pcb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}
@media (max-width: 639px) {
  .pcb-filter-selects,
  #tab-command.pcb-bucket-landing[data-pcb-surface="service"] #commandQueueFilterRow.pcb-filter-selects,
  .pcb-svc-row3,
  .pcb-svc-filter-cells:not(.cmd-lib-filter-row) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-flow: column !important;
  }
  .pcb-filter-select,
  .pcb-svc-filter-cells .pcb-filter-select {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 6px 4px !important;
  }
  .pcb-filter-select-kicker,
  .pcb-filter-select-value {
    text-align: left !important;
  }
  .pcb-filter-select-kicker { font-size: 8px !important; }
  .pcb-filter-select-value { font-size: 11px !important; }
}
@media (min-width: 640px) {
  .pcb-filter-select { align-items: flex-start; text-align: left; padding: 8px 10px; }
  .pcb-filter-select-kicker, .pcb-filter-select-value { text-align: left; font-size: 10px; }
  .pcb-filter-select-value { font-size: 13px; }
  .pcb-svc-row1 { gap: 8px; }
  .pcb-priority-stage { font-size: 12px; padding: 8px 6px; }
}
.pcb-filter-select[aria-expanded="true"],
.pcb-filter-select.is-active {
  border-color: var(--pcb-green);
  box-shadow: 0 0 0 1px rgba(0, 168, 84, 0.22);
}
.pcb-filter-popup-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}
.pcb-filter-popup-root[hidden],
.pcb-filter-popup-root.hidden { display: none !important; }
.pcb-filter-popup-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
}
.pcb-filter-popup {
  position: relative;
  width: min(420px, 100%);
  max-height: min(78vh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--pcb-surface);
  border: 1px solid var(--pcb-border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
}
.pcb-filter-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 8px;
}
.pcb-filter-popup-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}
.pcb-filter-popup-close {
  border: 0;
  background: transparent;
  color: var(--pcb-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}
.pcb-filter-popup-hint {
  margin: 0 16px 8px;
  font-size: 12px;
  color: var(--pcb-muted);
}
.pcb-filter-popup-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 12px 12px;
  min-height: 0;
}
.pcb-filter-popup-options {
  display: flex !important;
  flex-direction: column;
  flex-wrap: nowrap !important;
  gap: 8px;
  overflow-x: visible;
  overflow-y: visible;
  max-width: 100%;
}
.pcb-filter-popup-apply {
  margin: 0 12px 12px;
  border: 0;
  border-radius: 12px;
  background: var(--pcb-green);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 14px;
  cursor: pointer;
}
.pcb-svc-summary {
  margin: 0 0 12px;
}
.pcb-svc-summary-card {
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 14px;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #ecfdf5 100%);
  padding: 12px 14px;
}
.pcb-svc-summary-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #047857;
  margin-bottom: 4px;
}
.pcb-svc-summary-highlight {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--pcb-text);
  line-height: 1.4;
}
.pcb-svc-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pcb-svc-summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}
.pcb-svc-summary-count {
  min-width: 28px;
  text-align: center;
  border-radius: 999px;
  padding: 2px 8px;
  background: #ecfdf5;
  color: #047857;
  font-variant-numeric: tabular-nums;
}
.pcb-svc-summary-item--warn .pcb-svc-summary-count { background: #ffedd5; color: #9a3412; }
.pcb-svc-summary-item--pay .pcb-svc-summary-count { background: #fef3c7; color: #92400e; }
.pcb-svc-summary-item--stage .pcb-svc-summary-count { background: #dbeafe; color: #1e40af; }
.pcb-svc-summary-item--queue .pcb-svc-summary-count { background: #e0e7ff; color: #3730a3; }
.pcb-svc-summary-item--vip .pcb-svc-summary-count { background: #ede9fe; color: #6b21a8; }

#tab-command.pcb-bucket-landing[data-pcb-surface="service"] #commandQueueFilterRow .text-\[10px\] {
  font-size: 10px;
  margin-bottom: 4px !important;
  letter-spacing: 0.04em;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .pcb-filter-popup-options .command-queue-chip,
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .pcb-filter-popup-options .command-payment-chip,
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .pcb-filter-popup-options .command-application-stage-chip,
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .pcb-filter-popup-options .command-vip-chip {
  width: 100%;
  justify-content: flex-start;
  white-space: nowrap;
  min-height: 40px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  border-radius: 12px !important;
  border-width: 1px !important;
  font-weight: 600;
}
/* Semantic filter tints — reuse Command stage/payment meanings */
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-application-stage-chip[data-application-stage=""],
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-queue-chip[data-queue-key=""],
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-payment-chip[data-payment-tier="all"] {
  background: rgba(0, 168, 84, 0.08) !important;
  border-color: rgba(0, 168, 84, 0.35) !important;
  color: #047857 !important;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-vip-chip {
  background: rgba(168, 85, 247, 0.10) !important;
  border-color: rgba(168, 85, 247, 0.40) !important;
  color: #6b21a8 !important;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-application-stage-chip[data-application-stage="READY_TO_START"],
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-queue-chip[data-queue-key="ACTIVE"],
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-queue-chip[data-queue-key="PROCESSING"] {
  background: rgba(14, 165, 233, 0.10) !important;
  border-color: rgba(14, 165, 233, 0.40) !important;
  color: #075985 !important;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-application-stage-chip[data-application-stage="INTAKE_COMPLETE"],
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-queue-chip[data-queue-key="INTAKE_COMPLETE"] {
  background: rgba(13, 148, 136, 0.10) !important;
  border-color: rgba(13, 148, 136, 0.40) !important;
  color: #115e59 !important;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-application-stage-chip[data-application-stage="READY_FOR_FINAL_REVIEW"],
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-queue-chip[data-queue-key="READY_FOR_FINAL"] {
  background: rgba(249, 115, 22, 0.10) !important;
  border-color: rgba(249, 115, 22, 0.40) !important;
  color: #9a3412 !important;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-application-stage-chip[data-application-stage="READY_TO_SUBMIT"],
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-application-stage-chip[data-application-stage="SUBMITTED"],
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-queue-chip[data-queue-key="SUBMITTED"] {
  background: rgba(21, 128, 61, 0.12) !important;
  border-color: rgba(21, 128, 61, 0.45) !important;
  color: #14532d !important;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-application-stage-chip[data-application-stage="WAITING_ON_CLIENT"],
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-queue-chip[data-queue-key="ON_HOLD"] {
  background: rgba(249, 115, 22, 0.12) !important;
  border-color: rgba(249, 115, 22, 0.45) !important;
  color: #9a3412 !important;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-payment-chip[data-payment-tier="full"],
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-queue-chip[data-queue-key="PAID_IN_FULL"] {
  background: rgba(0, 168, 84, 0.12) !important;
  border-color: rgba(0, 168, 84, 0.45) !important;
  color: #166534 !important;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-payment-chip[data-payment-tier="none"],
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-queue-chip[data-queue-key="WAITING_DEPOSIT"] {
  background: rgba(220, 38, 38, 0.08) !important;
  border-color: rgba(220, 38, 38, 0.35) !important;
  color: #991b1b !important;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-payment-chip[data-payment-tier="partial"],
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-payment-chip[data-payment-tier="deposit"],
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-queue-chip[data-queue-key="DEPOSIT_PAID"] {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  color: #92400e !important;
}
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-queue-chip.active,
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-payment-chip.active,
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-application-stage-chip.active,
#tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-vip-chip.active {
  box-shadow: 0 0 0 1px currentColor inset;
  font-weight: 700 !important;
  filter: saturate(1.15);
}

/* ── Case list width ── */
#prdnaBucketCaseList,
.pcb-case-list {
  width: 100%;
  max-width: none;
  min-width: 0;
}

/* ── PRDNA case card — multiline, stage-tinted ── */
.pcb-case-card.tracker-case-card,
.pcb-root .tracker-case-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 10px;
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
  color: inherit;
  border-left-width: 4px;
  border-left-color: #94a3b8;
}
.pcb-root .tracker-case-card:last-child { margin-bottom: 0; }
.pcb-root .tracker-case-card:hover {
  border-color: rgba(0, 168, 84, 0.4);
  box-shadow: 0 2px 12px rgba(0, 168, 84, 0.08);
}
.pcb-case-layout {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  min-width: 0;
}
.pcb-case-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  width: 100%;
}
.pcb-case-identity {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}
.pcb-case-identity-text {
  min-width: 0;
  flex: 1 1 auto;
}
.pcb-root .tracker-case-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00A854;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.pcb-root .tracker-case-name,
.pcb-root .tracker-case-holder {
  font-weight: 700;
  font-size: 14px;
  color: #111827;
  line-height: 1.3;
  word-break: break-word;
}
.pcb-root .tracker-case-meta {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
  word-break: break-word;
}
.pcb-case-rail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: 0 0 auto;
  max-width: 42%;
  min-width: 0;
}
.pcb-stage-pill,
.pcb-case-rail .status-pill,
.pcb-case-rail .pcb-pay-badge {
  display: inline-flex;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.pcb-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
  width: 100%;
  min-width: 0;
}
.pcb-case-tag-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  width: 100%;
  min-width: 0;
}
.pcb-case-tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  border: 0;
  border-top: 1px solid #d1d5db;
  border-bottom: 1px solid #d1d5db;
  border-radius: 0;
  width: 100%;
  min-width: 0;
  background: transparent;
}
.pcb-case-tag-row + .pcb-case-tag-row {
  border-top: 0;
}
.pcb-case-tag-row .pcb-case-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 4px 8px;
  min-height: 26px;
  box-sizing: border-box;
}
.pcb-case-status-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
  width: 100%;
}
.pcb-case-stat {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  width: 100%;
}
.pcb-case-stat-lab {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.pcb-case-stat-chip {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #fef3c7;
  color: #92400e;
}
.pcb-case-stat-chip.is-ok {
  background: #d1fae5;
  color: #047857;
}
.pcb-case-stat-chip.is-warn {
  background: #fde68a;
  color: #92400e;
}
.pcb-case-stat-chip.is-stage {
  background: #dbeafe;
  color: #1d4ed8;
}
body.app-theme-dark .pcb-case-stat-chip,
#acctInfoCustomerBucketHost .pcb-case-stat-chip {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}
body.app-theme-dark .pcb-case-stat-chip.is-ok,
#acctInfoCustomerBucketHost .pcb-case-stat-chip.is-ok {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}
body.app-theme-dark .pcb-case-stat-chip.is-warn,
#acctInfoCustomerBucketHost .pcb-case-stat-chip.is-warn {
  background: rgba(234, 179, 8, 0.18);
  color: #facc15;
}
body.app-theme-dark .pcb-case-stat-chip.is-stage,
#acctInfoCustomerBucketHost .pcb-case-stat-chip.is-stage {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}
.pcb-case-chevron {
  color: #9ca3af;
  font-size: 22px;
  line-height: 1;
  flex: 0 0 auto;
}
.pcb-case-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.pcb-case-action-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: linear-gradient(180deg, #4b5563 0%, #374151 48%, #1f2937 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 12px 12px;
}
.pcb-case-action-kicker,
.acct-info-case-action-kicker {
  display: none !important;
}
.pcb-case-action-btns {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}
.pcb-case-action-btns .mg-banker-case-ctrl,
.pcb-case-action-btns .acct-info-case-act {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(17, 24, 39, 0.45);
  color: #e5e7eb;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  min-height: 26px;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}
.pcb-case-action-btns .acct-info-case-act.is-danger {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.28);
  color: #fca5a5;
}
.pcb-svc-tag,
.pcb-case-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcb-case-tag--assign {
  max-width: min(100%, 220px);
}
.pcb-svc-tag--stage, .pcb-case-tag--stage { background: #dbeafe; color: #1e40af; }
.pcb-svc-tag--pay, .pcb-case-tag--pay { background: #dcfce7; color: #166534; }
.pcb-svc-tag--warn, .pcb-case-tag--warn { background: #ffedd5; color: #9a3412; }
.pcb-svc-tag--vip, .pcb-case-tag--vip { background: #ede9fe; color: #6b21a8; }
.pcb-svc-tag--more { background: #e5e7eb; color: #4b5563; }
.pcb-pay-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.pcb-pay-badge--full { background: #dcfce7; color: #166534; }
.pcb-pay-badge--deposit { background: #d1fae5; color: #047857; }
.pcb-pay-badge--partial { background: #fef3c7; color: #92400e; }
.pcb-pay-badge--none,
.pcb-pay-badge--awaiting { background: #f3f4f6; color: #4b5563; }
.pcb-pay-badge--not_required,
.pcb-pay-badge--waived { background: #e0e7ff; color: #3730a3; }

/* Stage → full card tint (light) — mirrors Command .command-pardna-card semantics */
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--not-started { background: rgba(148,163,184,0.10) !important; border-color: rgba(100,116,139,0.35) !important; border-left-color: #64748b !important; }
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--ready-to-start { background: rgba(14,165,233,0.10) !important; border-color: rgba(14,165,233,0.40) !important; border-left-color: #0ea5e9 !important; }
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--waiting-on-client { background: rgba(249,115,22,0.10) !important; border-color: rgba(249,115,22,0.40) !important; border-left-color: #f97316 !important; }
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--intake-complete { background: rgba(59,130,246,0.10) !important; border-color: rgba(59,130,246,0.40) !important; border-left-color: #3b82f6 !important; }
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--document-prep-complete { background: rgba(99,102,241,0.10) !important; border-color: rgba(99,102,241,0.40) !important; border-left-color: #6366f1 !important; }
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--ready-for-final-review { background: rgba(168,85,247,0.10) !important; border-color: rgba(168,85,247,0.40) !important; border-left-color: #a855f7 !important; }
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--ready-to-submit { background: rgba(236,72,153,0.10) !important; border-color: rgba(236,72,153,0.40) !important; border-left-color: #ec4899 !important; }
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--submitted { background: rgba(21,128,61,0.18) !important; border-color: rgba(21,128,61,0.55) !important; border-left-color: #15803d !important; }
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--in-review { background: rgba(8,145,178,0.12) !important; border-color: rgba(8,145,178,0.42) !important; border-left-color: #0891b2 !important; }
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--gc-key { background: rgba(13,148,136,0.12) !important; border-color: rgba(13,148,136,0.42) !important; border-left-color: #0d9488 !important; }
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--approved { background: rgba(5,150,105,0.12) !important; border-color: rgba(5,150,105,0.42) !important; border-left-color: #059669 !important; }
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--refused { background: rgba(220,38,38,0.10) !important; border-color: rgba(220,38,38,0.40) !important; border-left-color: #dc2626 !important; }
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--withdrawn { background: rgba(107,114,128,0.12) !important; border-color: rgba(107,114,128,0.40) !important; border-left-color: #6b7280 !important; }
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--completed { background: rgba(30,64,175,0.10) !important; border-color: rgba(30,64,175,0.40) !important; border-left-color: #1e40af !important; }

.pcb-empty {
  text-align: center;
  color: var(--pcb-muted);
  font-size: 14px;
  padding: 28px 12px;
}

#tab-command.pcb-bucket-landing #commandHeaderWrap,
#tab-command.pcb-bucket-landing #commandGroupCards,
#tab-command.pcb-bucket-landing #commandServicesPanel,
#tab-command.pcb-bucket-landing #commandCasesPanel {
  display: none !important;
}
#tab-command.pcb-bucket-landing {
  background: transparent !important;
  background-image: none !important;
}
#tab-command.pcb-bucket-landing #commandScrollArea {
  background: transparent !important;
  border-color: transparent !important;
}

body.app-theme-dark #tab-command.pcb-bucket-landing {
  background: #111827 !important;
}
body.app-theme-dark .pcb-root { color: #f9fafb; }
body.app-theme-dark .pcb-cat-btn {
  background: transparent;
  border-color: transparent;
  border-right-color: #374151;
  color: #f9fafb;
}
body.app-theme-dark .pcb-switcher {
  border-bottom-color: #374151;
}
body.app-theme-dark .pcb-cat-btn.is-selected {
  border-color: transparent;
  border-right-color: #374151;
  background: rgba(0, 168, 84, 0.16);
  box-shadow: inset 0 -2px 0 #34d399;
  color: #a7f3d0;
}
body.app-theme-dark .pcb-svc-card {
  background: linear-gradient(165deg, #1f2937 0%, #111827 100%);
  border-color: #374151;
}
body.app-theme-dark .pcb-svc-card-name,
body.app-theme-dark .pcb-svc-screen-title { color: #f9fafb; }
body.app-theme-dark .pcb-svc-card-sub,
body.app-theme-dark .pcb-root .tracker-case-meta { color: #9ca3af; }
body.app-theme-dark .pcb-back-btn { color: #34d399; }
body.app-theme-dark .pcb-svc-card-count { background: rgba(15, 23, 42, 0.55); color: #6ee7b7; border-color: rgba(52, 211, 153, 0.35); }

body.app-theme-dark .pcb-landing-toolbar {
  background: transparent;
  border-color: transparent;
}
body.app-theme-dark .pcb-landing-service-search {
  background: #111827;
  border-color: #374151;
  color: #f9fafb;
}
body.app-theme-dark .pcb-landing-service-search::placeholder {
  color: #9ca3af;
}
body.app-theme-dark .pcb-landing-search-clear { color: #9ca3af; }
body.app-theme-dark .pcb-landing-toolbar-label { color: #9ca3af; }
body.app-theme-dark .pcb-cap-btn { background: #111827; border-color: #4b5563; color: #e5e7eb; }
body.app-theme-dark .pcb-cap-btn--active { background: rgba(0, 168, 84, 0.22); border-color: #34d399; color: #a7f3d0; }
body.app-theme-dark .pcb-filter-select {
  background: #1f2937;
  border-color: #374151;
  color: #f9fafb;
}
body.app-theme-dark .pcb-filter-select-value { color: #f9fafb; }
body.app-theme-dark .pcb-filter-popup { background: #1f2937; border-color: #374151; color: #f9fafb; }
body.app-theme-dark .pcb-filter-popup-close { color: #d1d5db; }
body.app-theme-dark .pcb-svc-summary-card {
  background: linear-gradient(165deg, #1f2937 0%, #111827 100%);
  border-color: #374151;
}
body.app-theme-dark .pcb-svc-summary-highlight,
body.app-theme-dark .pcb-svc-summary-item { color: #e5e7eb; }

/* Dark: filter panel + chips (no bright white slab) */
body.app-theme-dark #tab-command.pcb-bucket-landing[data-pcb-surface="service"] #commandQueueFilterRow {
  background: transparent !important;
  border-color: transparent !important;
}
body.app-theme-dark #tab-command.pcb-bucket-landing[data-pcb-surface="service"] #commandQueueFilterRow .text-gray-500,
body.app-theme-dark #tab-command.pcb-bucket-landing[data-pcb-surface="service"] #commandQueueFilterRow .text-\[10px\] {
  color: #9ca3af !important;
}
body.app-theme-dark #tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-queue-chip,
body.app-theme-dark #tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-payment-chip,
body.app-theme-dark #tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-application-stage-chip,
body.app-theme-dark #tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-vip-chip {
  background: #111827 !important;
  border-color: #4b5563 !important;
  color: #e5e7eb !important;
}
body.app-theme-dark #tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-application-stage-chip[data-application-stage=""],
body.app-theme-dark #tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-queue-chip[data-queue-key=""],
body.app-theme-dark #tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-payment-chip[data-payment-tier="all"] {
  background: rgba(0, 168, 84, 0.18) !important;
  border-color: rgba(52, 211, 153, 0.45) !important;
  color: #a7f3d0 !important;
}
body.app-theme-dark #tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-vip-chip {
  background: rgba(168, 85, 247, 0.22) !important;
  border-color: rgba(192, 132, 252, 0.45) !important;
  color: #e9d5ff !important;
}
body.app-theme-dark #tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-application-stage-chip[data-application-stage="READY_TO_START"],
body.app-theme-dark #tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-queue-chip[data-queue-key="ACTIVE"] {
  background: rgba(14, 165, 233, 0.22) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  color: #e0f2fe !important;
}
body.app-theme-dark #tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-application-stage-chip[data-application-stage="INTAKE_COMPLETE"] {
  background: rgba(13, 148, 136, 0.22) !important;
  border-color: rgba(45, 212, 191, 0.45) !important;
  color: #ccfbf1 !important;
}
body.app-theme-dark #tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-application-stage-chip[data-application-stage="SUBMITTED"],
body.app-theme-dark #tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-application-stage-chip[data-application-stage="READY_TO_SUBMIT"] {
  background: rgba(20, 83, 45, 0.55) !important;
  border-color: rgba(74, 222, 128, 0.50) !important;
  color: #bbf7d0 !important;
}
body.app-theme-dark #tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-payment-chip[data-payment-tier="full"] {
  background: rgba(0, 168, 84, 0.22) !important;
  border-color: rgba(74, 222, 128, 0.45) !important;
  color: #bbf7d0 !important;
}
body.app-theme-dark #tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-payment-chip[data-payment-tier="none"] {
  background: rgba(220, 38, 38, 0.22) !important;
  border-color: rgba(248, 113, 113, 0.45) !important;
  color: #fecaca !important;
}
body.app-theme-dark #tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-payment-chip[data-payment-tier="partial"],
body.app-theme-dark #tab-command.pcb-bucket-landing[data-pcb-surface="service"] .command-payment-chip[data-payment-tier="deposit"] {
  background: rgba(245, 158, 11, 0.22) !important;
  border-color: rgba(251, 191, 36, 0.45) !important;
  color: #fde68a !important;
}
body.app-theme-dark #tab-command.pcb-bucket-landing .pcb-actions .cc-order-btn,
body.app-theme-dark #tab-command.pcb-bucket-landing #commandQueueArchivedBtn,
body.app-theme-dark #tab-command.pcb-bucket-landing #commandQueueClosedBtn,
body.app-theme-dark #tab-command.pcb-bucket-landing #commandCasesRefresh {
  background: #1f2937 !important;
  border-color: #4b5563 !important;
  color: #e5e7eb !important;
}

/* Dark case cards: dark base + semantic tint (do not flat-paint all cards gray) */
body.app-theme-dark .pcb-case-card.tracker-case-card {
  background: #1f2937 !important;
  border-color: #374151 !important;
  color: #f9fafb;
}
body.app-theme-dark .pcb-root .tracker-case-name,
body.app-theme-dark .pcb-root .tracker-case-holder { color: #f9fafb; }
body.app-theme-dark .pcb-case-card.case-stage-surface--not-started { background: rgba(51,65,85,0.72) !important; border-color: rgba(148,163,184,0.40) !important; border-left-color: #94a3b8 !important; }
body.app-theme-dark .pcb-case-card.case-stage-surface--ready-to-start { background: rgba(7,89,133,0.42) !important; border-color: rgba(56,189,248,0.45) !important; border-left-color: #38bdf8 !important; }
body.app-theme-dark .pcb-case-card.case-stage-surface--waiting-on-client { background: rgba(154,52,18,0.35) !important; border-color: rgba(251,146,60,0.45) !important; border-left-color: #fb923c !important; }
body.app-theme-dark .pcb-case-card.case-stage-surface--intake-complete { background: rgba(30,64,175,0.35) !important; border-color: rgba(96,165,250,0.45) !important; border-left-color: #60a5fa !important; }
body.app-theme-dark .pcb-case-card.case-stage-surface--document-prep-complete { background: rgba(67,56,202,0.35) !important; border-color: rgba(129,140,248,0.45) !important; border-left-color: #818cf8 !important; }
body.app-theme-dark .pcb-case-card.case-stage-surface--ready-for-final-review { background: rgba(88,28,135,0.35) !important; border-color: rgba(192,132,252,0.45) !important; border-left-color: #c084fc !important; }
body.app-theme-dark .pcb-case-card.case-stage-surface--ready-to-submit { background: rgba(157,23,77,0.35) !important; border-color: rgba(244,114,182,0.45) !important; border-left-color: #f472b6 !important; }
body.app-theme-dark .pcb-case-card.case-stage-surface--submitted { background: rgba(20,83,45,0.48) !important; border-color: rgba(74,222,128,0.55) !important; border-left-color: #4ade80 !important; }
body.app-theme-dark .pcb-case-card.case-stage-surface--in-review { background: rgba(21,94,117,0.38) !important; border-color: rgba(34,211,238,0.45) !important; border-left-color: #22d3ee !important; }
body.app-theme-dark .pcb-case-card.case-stage-surface--gc-key { background: rgba(17,94,89,0.38) !important; border-color: rgba(45,212,191,0.45) !important; border-left-color: #2dd4bf !important; }
body.app-theme-dark .pcb-case-card.case-stage-surface--approved { background: rgba(6,78,59,0.38) !important; border-color: rgba(52,211,153,0.45) !important; border-left-color: #34d399 !important; }
body.app-theme-dark .pcb-case-card.case-stage-surface--refused { background: rgba(127,29,29,0.42) !important; border-color: rgba(248,113,113,0.45) !important; border-left-color: #f87171 !important; }
body.app-theme-dark .pcb-case-card.case-stage-surface--withdrawn { background: rgba(55,65,81,0.72) !important; border-color: rgba(156,163,175,0.40) !important; border-left-color: #9ca3af !important; }
body.app-theme-dark .pcb-case-card.case-stage-surface--completed { background: rgba(30,58,138,0.42) !important; border-color: rgba(96,165,250,0.45) !important; border-left-color: #60a5fa !important; }
body.app-theme-dark .pcb-case-tag-row {
  border-top-color: #374151;
  border-bottom-color: #374151;
  background: transparent;
}
body.app-theme-dark .pcb-case-tag { background: rgba(15,23,42,0.55); color: #e5e7eb; }
body.app-theme-dark .pcb-case-tag--stage { background: rgba(59,130,246,0.28); color: #dbeafe; }
body.app-theme-dark .pcb-case-tag--warn { background: rgba(249,115,22,0.28); color: #ffedd5; }
body.app-theme-dark .pcb-case-tag--vip { background: rgba(168,85,247,0.28); color: #f3e8ff; }
body.app-theme-dark .pcb-case-tag--pay { background: rgba(21,128,61,0.35); color: #bbf7d0; }
body.app-theme-dark .pcb-pay-badge--full { background: rgba(21,128,61,0.45); color: #bbf7d0; }
body.app-theme-dark .pcb-pay-badge--none,
body.app-theme-dark .pcb-pay-badge--awaiting { background: rgba(55,65,81,0.8); color: #d1d5db; }
body.app-theme-dark .pcb-pay-badge--partial,
body.app-theme-dark .pcb-pay-badge--deposit { background: rgba(146,64,14,0.45); color: #fde68a; }

/* ── PRDNA case workspace chrome (wraps existing L4 owners) ── */
#commandCaseDetailPanel.pcb-workspace {
  --pcb-text: #f9fafb;
  --pcb-muted: #94a3b8;
  --pcb-meta: #94a3b8;
  --pcb-border: rgba(255, 255, 255, 0.12);
  --pcb-surface: rgba(30, 41, 59, 0.78);
  --pcb-wash: rgba(15, 23, 42, 0.72);
  --pcb-green-soft: rgba(6, 78, 59, 0.35);
  --pcb-green-mid: rgba(6, 95, 70, 0.45);
  background: #0b0f14 !important;
  max-width: none;
  margin: 0;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  color: #f9fafb;
}
#commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent {
  color: #f9fafb;
  overflow-x: hidden;
}
#commandCaseDetailPanel.pcb-workspace [data-section] {
  background: rgba(30, 41, 59, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 12px !important;
  color: #f9fafb !important;
}
#commandCaseDetailPanel.pcb-workspace [data-section] .text-gray-100,
#commandCaseDetailPanel.pcb-workspace [data-section] .text-gray-200,
#commandCaseDetailPanel.pcb-workspace [data-section] .text-gray-300 {
  color: #f9fafb !important;
}
#commandCaseDetailPanel.pcb-workspace [data-section="account-contact"],
#commandCaseDetailPanel.pcb-workspace [data-section="guidelines"],
#commandCaseDetailPanel.pcb-workspace [data-section="notes"],
#commandCaseDetailPanel.pcb-workspace [data-section="case-fetch-error"],
#commandCaseDetailPanel.pcb-workspace [data-section="primary-actions"],
#commandCaseDetailPanel.pcb-workspace [data-section="service-summary"],
#commandCaseDetailPanel.pcb-workspace [data-section="intake-progress"],
#commandCaseDetailPanel.pcb-workspace [data-section="required-documents"],
#commandCaseDetailPanel.pcb-workspace [data-section="prepared-documents"],
#commandCaseDetailPanel.pcb-workspace [data-section="payment"] {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
#commandCaseDetailPanel.pcb-workspace [data-section="guidelines"] .pcb-canvas,
#commandCaseDetailPanel.pcb-workspace [data-section="notes"] .pcb-canvas {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
#commandCaseDetailPanel.pcb-workspace [data-section="service-summary"] > .text-\[10px\].uppercase:first-child,
#commandCaseDetailPanel.pcb-workspace [data-section="service-summary"] > div:first-child.text-\[10px\] {
  font-size: 15px !important;
  font-weight: 800 !important;
  text-transform: none !important;
  color: #f9fafb !important;
  letter-spacing: 0 !important;
}
.pcb-tools-canvas {
  margin-top: 0;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.pcb-tools-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 10px;
}
.pcb-tools-group {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pcb-tools-group-label {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 2px;
}
.pcb-tools-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(17, 24, 39, 0.72);
  color: #f9fafb;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pcb-tools-btn:hover { border-color: #00A854; color: #6ee7b7; }
.pcb-tools-icon { margin-right: 0; font-size: 18px; line-height: 1; flex: 0 0 auto; }
.pcb-tools-chevron { margin-left: auto; color: #94a3b8; font-size: 16px; font-weight: 400; }

/* ── Final case workflow: Client Details + tracker + docs ── */
.pcb-client-details-card { overflow: hidden; }
.pcb-client-details-kicker {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: #f9fafb;
  margin-bottom: 8px;
}
.pcb-client-expanders {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.pcb-canvas--expander {
  border-color: rgba(0, 168, 84, 0.45);
}
.pcb-canvas--expander > summary .pcb-canvas-title {
  color: #f9fafb;
  font-weight: 800;
}
.pcb-wf-tracker-wrap {
  position: relative;
  margin: 10px 0 12px;
  width: 100%;
}
.pcb-wf-meter {
  position: absolute;
  top: 11px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #4b5563;
  border-radius: 999px;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.pcb-wf-meter-fill {
  display: block;
  height: 100%;
  background: #00A854;
  border-radius: 999px;
}
.pcb-wf-tracker {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2px;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.pcb-wf-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  position: relative;
}
.pcb-wf-step:not(:last-child)::after { content: none; }
.pcb-wf-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #374151;
  border: 2px solid #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #e5e7eb;
  position: relative;
  z-index: 1;
}
.pcb-wf-step.is-done .pcb-wf-dot { background: #00A854; border-color: #00A854; color: #fff; }
.pcb-wf-step.is-current .pcb-wf-dot { background: #00A854; border-color: #00A854; color: #fff; box-shadow: 0 0 0 3px rgba(0,168,84,0.25); }
.pcb-wf-label {
  font-size: 9px;
  font-weight: 700;
  color: #9ca3af;
  line-height: 1.15;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcb-wf-step.is-done .pcb-wf-label,
.pcb-wf-step.is-current .pcb-wf-label { color: #6ee7b7; }
.pcb-doc-thumb {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 8px;
  border: 1px solid var(--pcb-border);
  background: var(--pcb-wash);
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pcb-doc-thumb:disabled { cursor: default; opacity: 0.7; }
.pcb-doc-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.pcb-doc-thumb-ph { color: #9ca3af; font-size: 16px; }
.pcb-doc-row-state.is-pending,
.pcb-doc-row-state.is-stale { color: #c2410c; }
.pcb-chat-row { width: 100%; }
.pcb-case-footer-row { width: 100%; }
.pcb-intake-inline-host { min-width: 0; }
#commandCaseDetailPanel.pcb-workspace .pcb-svc-tag--vip { background: rgba(124,58,237,0.28); color: #e9d5ff; }
#commandCaseDetailPanel.pcb-workspace .pcb-svc-tag--bio { background: rgba(14,165,233,0.22); color: #7dd3fc; }
body.app-theme-dark .pcb-client-details-kicker { color: #f9fafb; }
body.app-theme-dark .pcb-canvas--expander > summary .pcb-canvas-title { color: #34d399; }
body.app-theme-dark .pcb-wf-label { color: #9ca3af; }
body.app-theme-dark .pcb-wf-step.is-done .pcb-wf-label,
body.app-theme-dark .pcb-wf-step.is-current .pcb-wf-label { color: #6ee7b7; }
body.app-theme-dark .pcb-wf-dot { background: #374151; border-color: #6b7280; color: #e5e7eb; }
body.app-theme-dark .pcb-wf-step.is-done .pcb-wf-dot,
body.app-theme-dark .pcb-wf-step.is-current .pcb-wf-dot {
  background: #00A854;
  border-color: #00A854;
  color: #fff;
}
body.app-theme-dark .pcb-doc-row-state.is-pending,
body.app-theme-dark .pcb-doc-row-state.is-stale { color: #fb923c; }
body.app-theme-dark .pcb-svc-tag--vip { color: #e9d5ff; }
body.app-theme-dark .pcb-svc-tag--bio { color: #7dd3fc; }

/* ── Collapsible workspace canvases ── */
.pcb-canvas {
  border: 1px solid var(--pcb-border);
  border-radius: 14px;
  background: var(--pcb-surface);
  overflow: hidden;
  margin: 0;
}
.pcb-canvas > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 14px;
  color: var(--pcb-text);
  user-select: none;
}
.pcb-canvas > summary::-webkit-details-marker { display: none; }
.pcb-canvas-summary-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.pcb-canvas-title { font-size: 15px; font-weight: 800; line-height: 1.25; }
.pcb-canvas-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--pcb-muted);
}
.pcb-canvas-status.is-alert { color: #f87171; }
.pcb-canvas-status.is-ok { color: #34d399; }
.pcb-canvas-status.is-progress { color: #fb923c; }
.pcb-canvas-chevron {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--pcb-muted);
  transition: transform 0.15s ease;
}
.pcb-canvas[open] > summary .pcb-canvas-chevron { transform: rotate(90deg); }
.pcb-canvas-body {
  padding: 0 14px 14px;
  border-top: 1px solid var(--pcb-border);
}
.pcb-canvas--docs > summary {
  padding: 8px 12px;
}
.pcb-canvas--docs .pcb-canvas-summary-main,
.pcb-canvas--intake .pcb-canvas-summary-main {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.pcb-canvas--docs .pcb-canvas-title,
.pcb-canvas--intake .pcb-canvas-title { font-size: 14px; font-weight: 800; }
.pcb-canvas--docs .pcb-canvas-status,
.pcb-canvas--intake .pcb-canvas-status { font-size: 12px; font-weight: 700; }
.pcb-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.pcb-doc-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 12px;
  min-width: 0;
}
.pcb-doc-group:last-child { margin-bottom: 0; }
.pcb-doc-group-head {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  margin: 0;
}
.pcb-doc-unit {
  display: block;
  min-width: 0;
}
.pcb-doc-card {
  display: grid;
  grid-template-columns: minmax(112px, 34%) minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.72);
  overflow: hidden;
}
.pcb-doc-preview-col,
.pcb-doc-preview-pane {
  grid-column: 1;
  grid-row: 1 / -1;
  position: relative;
  min-width: 0;
  min-height: 160px;
  height: 100%;
  align-self: stretch;
  background: #0b1220;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
}
.pcb-doc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  gap: 8px 8px;
  padding: 8px 10px;
  border-bottom: 0;
  min-width: 0;
}
.pcb-doc-preview {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.pcb-doc-preview:disabled { cursor: default; }
.pcb-doc-preview-col .pcb-doc-thumb,
.pcb-doc-preview-pane .pcb-doc-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  flex: none;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.pcb-doc-preview-col .pcb-doc-thumb-img,
.pcb-doc-preview-col .pcb-doc-preview-fill,
.pcb-doc-preview-col img,
.pcb-doc-preview-col iframe,
.pcb-doc-preview-pane .pcb-doc-preview-fill,
.pcb-doc-preview-pane img,
.pcb-doc-preview-pane iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  margin: 0;
  object-fit: cover;
  background: #0b1220;
  display: block;
}
/* PDF first page (pdf.js canvas): show the top of page one, on paper white. */
.pcb-doc-preview-col .pcb-doc-preview-canvas,
.pcb-doc-preview-pane .pcb-doc-preview-canvas {
  object-position: top center;
  background: #ffffff;
}
.pcb-doc-preview-col .pcb-doc-thumb-ph,
.pcb-doc-preview-col .pcb-doc-preview-loading,
.pcb-doc-preview-pane .pcb-doc-thumb-ph,
.pcb-doc-preview-pane .pcb-doc-preview-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
}
.pcb-doc-row-meta { min-width: 0; overflow: hidden; }
.pcb-doc-row-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--pcb-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcb-doc-row[data-pcb-doc-state="missing"] .pcb-doc-row-name { color: #f87171; }
.pcb-doc-row[data-pcb-doc-state="stale"] .pcb-doc-row-name,
.pcb-doc-row[data-pcb-doc-state="pending"] .pcb-doc-row-name { color: #fb923c; }
.pcb-doc-row[data-pcb-doc-state="ok"] .pcb-doc-row-name { color: #34d399; }
#acctBusinessWorkspace .pcb-doc-row[data-pcb-doc-state="missing-optional"] .pcb-doc-row-name,
[data-customer-mode="1"] .pcb-doc-row[data-pcb-doc-state="missing-optional"] .pcb-doc-row-name { color: #60a5fa; }
#acctBusinessWorkspace .pcb-doc-row-state.is-missing-optional,
[data-customer-mode="1"] .pcb-doc-row-state.is-missing-optional { color: #60a5fa; }
.pcb-doc-row-state { font-size: 11px; font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcb-doc-row-state.is-missing { color: #b91c1c; }
.pcb-doc-row-state.is-pending,
.pcb-doc-row-state.is-stale { color: #c2410c; }
.pcb-doc-row-state.is-ok { color: #047857; }
.pcb-doc-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.pcb-doc-tag {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  border: 1px solid transparent;
  background: rgba(245, 158, 11, 0.18);
  color: #fdba74;
  border-color: rgba(251, 146, 60, 0.4);
}
.pcb-doc-tag.is-link {
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.pcb-doc-row-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-shrink: 0;
  min-width: 0;
}
.pcb-doc-guide-panel {
  display: block;
  grid-column: 2;
  grid-row: 3;
  min-width: 0;
  width: auto;
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: #374151;
  box-shadow: none;
  overflow: hidden;
  align-self: stretch;
}
.pcb-doc-guide-panel.is-collapsed .pcb-doc-guide-body { display: none; }
.pcb-doc-guide-teaser {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin: 0;
  padding: 8px 12px 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #d1d5db;
}
.pcb-doc-guide-panel:not(.is-collapsed) .pcb-doc-guide-teaser { display: none; }
.pcb-doc-guide-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 48%, #1e40af 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #f9fafb;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.pcb-doc-guide-toggle .pcb-wf-guide-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f9fafb;
}
.pcb-doc-guide-panel:not(.is-collapsed) .pcb-wf-guide-chevron {
  transform: rotate(180deg);
}
.pcb-doc-guide-body {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding: 10px 12px 12px;
}
.pcb-doc-row-upload,
.pcb-doc-row-secondary {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
}
.pcb-doc-act {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(17, 24, 39, 0.72);
  color: #e5e7eb;
  border-radius: 8px;
  padding: 6px 8px;
  min-height: 32px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.pcb-doc-act--danger { color: #b91c1c; border-color: rgba(185,28,28,0.35); }
.pcb-doc-act:disabled,
.pcb-doc-act.is-disabled { opacity: 0.45; cursor: not-allowed; }
.pcb-doc-actions-toggle {
  font-weight: 800;
}
.pcb-doc-action-drawer {
  display: block;
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  width: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(17, 24, 39, 0.45);
}
.pcb-doc-action-drawer.is-collapsed,
.pcb-doc-action-drawer[hidden] { display: none; }
.pcb-doc-action-drawer-grid {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 6px;
  padding: 8px 12px 10px;
}
.pcb-doc-action-drawer-grid .pcb-doc-act {
  width: 100%;
  justify-content: center;
}
.pcb-artifact-view {
  position: fixed;
  inset: 0;
  z-index: 12060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.pcb-artifact-view-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.pcb-artifact-view-card {
  position: relative;
  z-index: 1;
  width: min(96vw, 56rem);
  max-height: min(94vh, 100dvh);
  display: flex;
  flex-direction: column;
  background: #111827;
  color: #f9fafb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}
.pcb-artifact-view-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #374151;
  flex-shrink: 0;
}
.pcb-artifact-view-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcb-artifact-view-actions { display: flex; flex-wrap: wrap; gap: 6px; flex-shrink: 0; }
.pcb-artifact-view-btn {
  border: 1px solid #4b5563;
  background: #374151;
  color: #e5e7eb;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
}
.pcb-artifact-view-btn--primary {
  background: #00a854;
  border-color: #00a854;
  color: #fff;
}
.pcb-artifact-view-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.pcb-artifact-view-body img {
  max-width: 100%;
  max-height: min(78vh, 820px);
  object-fit: contain;
  border-radius: 8px;
  background: #111827;
}
.pcb-artifact-view-body iframe {
  width: 100%;
  min-height: min(70vh, 720px);
  height: 70vh;
  border: 1px solid #374151;
  border-radius: 8px;
  background: #111827;
}
.pcb-artifact-view-status {
  padding: 24px 16px;
  text-align: center;
  font-size: 0.9rem;
  color: #94a3b8;
}
@media (max-width: 640px) {
  .pcb-artifact-view { padding: 0; }
  .pcb-artifact-view-card { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
}
.pcb-doc-more { position: relative; flex-shrink: 0; }
.pcb-doc-more-sum {
  list-style: none;
  cursor: pointer;
}
.pcb-doc-more-sum::-webkit-details-marker { display: none; }
.pcb-doc-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 8;
  min-width: 168px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #111827;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.pcb-doc-more-menu .pcb-doc-act { width: 100%; justify-content: flex-start; }
.pcb-tools-host {
  border: 1px solid var(--pcb-border);
  border-radius: 14px;
  background: var(--pcb-surface);
  padding: 12px 14px;
}
.pcb-tools-host .pcb-tools-canvas {
  margin-top: 0;
  border: 0;
  padding: 0;
  background: transparent;
}
.pcb-tools-host .pcb-workflow-wrap {
  display: none;
  margin-top: 12px;
  border-top: 1px solid var(--pcb-border);
  padding-top: 10px;
}
.pcb-tools-host .pcb-workflow-wrap.is-open { display: block; }
#commandCaseDetailPanel.pcb-workspace {
  background: #0b0f14 !important;
  color: #f9fafb;
}
#commandCaseDetailPanel.pcb-workspace .pcb-canvas,
#commandCaseDetailPanel.pcb-workspace .pcb-client-details-card,
#commandCaseDetailPanel.pcb-workspace .pcb-tools-host,
#commandCaseDetailPanel.pcb-workspace .pcb-chat-row,
#commandCaseDetailPanel.pcb-workspace .cmd-svc-surface {
  background: rgba(30, 41, 59, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 12px;
  color: #f9fafb !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
body.app-theme-dark #commandCaseDetailPanel.pcb-workspace {
  background: linear-gradient(180deg, #0f172a 0%, #111827 30%, #111827 100%) !important;
}
body.app-theme-dark #commandCaseDetailPanel.pcb-workspace [data-section]:not([data-section="primary-actions"]):not([data-section="case-fetch-error"]):not([data-section="account-contact"]):not([data-section="guidelines"]):not([data-section="notes"]):not([data-section="service-summary"]),
body.app-theme-dark #commandCaseDetailPanel.pcb-workspace .pcb-canvas,
body.app-theme-dark #commandCaseDetailPanel.pcb-workspace .pcb-tools-host {
  background: rgba(30, 41, 59, 0.78) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  color: #f9fafb !important;
}
body.app-theme-dark .pcb-canvas-title { color: #f9fafb; }
body.app-theme-dark .pcb-canvas-status,
body.app-theme-dark .pcb-canvas-chevron { color: #9ca3af; }
body.app-theme-dark .pcb-canvas-status.is-progress { color: #fb923c; }
body.app-theme-dark .pcb-canvas-status.is-alert { color: #f87171; }
body.app-theme-dark .pcb-canvas-status.is-ok { color: #34d399; }
body.app-theme-dark .pcb-doc-act {
  background: #111827;
  border-color: #4b5563;
  color: #e5e7eb;
}
body.app-theme-dark .pcb-canvas-body,
body.app-theme-dark .pcb-tools-host .pcb-workflow-wrap {
  border-color: #374151;
}
@media (max-width: 639px) {
  .pcb-doc-act { min-width: 0; padding: 6px 7px; font-size: 10px; }
}
@media (min-width: 768px) {
  .pcb-doc-act { padding: 8px 12px; min-height: 36px; font-size: 12px; }
  .pcb-tools-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcb-client-expanders { flex-direction: column; }
}

/* Neutral Pardna service card (no whole-card purple stage wash) */
body.app-theme-dark #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent .cmd-svc-surface,
body.app-theme-dark #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent .cmd-svc-surface.svc-pay-tier,
body.app-theme-dark #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent .cmd-svc-surface.svc-pay-tier--none,
body.app-theme-dark #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent .cmd-svc-surface.svc-pay-tier--full,
body.app-theme-dark #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent .cmd-svc-surface.svc-pay-tier--deposit,
body.app-theme-dark #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent .cmd-svc-surface.svc-pay-tier--partial,
body.app-theme-dark #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent .cmd-svc-surface.svc-pay-tier--awaiting,
body.app-theme-dark #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent .cmd-svc-surface.svc-pay-tier.svc-pay-tier--intake-nopay,
body.app-theme-dark #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent .cmd-svc-surface.svc-pay-tier--intake-done {
  background: #1f2937 !important;
  border-color: #374151 !important;
}

.pcb-svc-admin {
  margin: 8px 0 4px;
  border: 1px solid var(--pcb-border, #374151);
  border-radius: 10px;
  overflow: hidden;
}
.pcb-svc-admin-summary {
  list-style: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 8px 10px;
}
.pcb-svc-admin-summary::-webkit-details-marker { display: none; }
.pcb-svc-admin-body { padding: 0 10px 10px; }
.pcb-client-stage-row p { display: none; }
.pcb-client-details-contact {
  font-size: 12px;
  background: transparent;
}
.pcb-case-footer-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 0;
  padding-bottom: 4px;
  box-sizing: border-box;
  max-width: 100%;
}
.pcb-case-footer-row > button,
.pcb-case-footer-row > select {
  flex: 0 1 auto;
  min-width: 0;
}
.pcb-case-footer-row select {
  max-width: 148px;
  font-size: 12px;
  padding: 6px 8px;
}
.pcb-pay-actions > .pcb-generate-checkout,
.pcb-pay-actions > .pay-edit-btn { width: 100%; }
.pcb-pay-actions > .pcb-generate-checkout { min-height: 42px; font-weight: 800; }
.pcb-pay-action-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  width: 100%;
}
.pcb-pay-action-row > button {
  width: 100%;
  min-height: 42px;
}
.pcb-pay-actions > .pcb-checkout-link-bar {
  flex: 1 1 100%;
  width: 100%;
  margin-top: 0;
}
@media (min-width: 640px) {
  .pcb-pay-actions > .pay-edit-btn { width: auto; }
}

/* Case workflow responsive grid — vertical numbered rail + guideline column */
.pcb-case-workflow-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}
.pcb-case-workflow-grid > [hidden] { display: none !important; }
.pcb-case-workflow-grid > [data-section] { min-width: 0; box-sizing: border-box; }

/* Workflow rows: one full-width column — number lives ON the canvas (no detached rail). */
.pcb-wf-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  width: 100%;
  min-width: 0;
}
.pcb-wf-row[hidden],
.pcb-wf-row[data-pcb-composition-na="1"] {
  display: none !important;
}
.pcb-phase-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 6px;
  line-height: 1.2;
}
.pcb-wf-row.is-utility { opacity: 0.98; }
.pcb-wf-inline {
  border-radius: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(15, 23, 42, 0.55);
}
.pcb-wf-inline-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 2px;
}
.pcb-wf-inline-title {
  font-size: 13px;
  font-weight: 600;
  color: #f3f4f6;
  line-height: 1.35;
  word-break: break-word;
}
.pcb-wf-inline-body {
  margin: 4px 0 0;
  font-size: 12px;
  color: #d1d5db;
  line-height: 1.4;
  word-break: break-word;
}
.pcb-wf-inline--heading {
  border-color: rgba(148, 163, 184, 0.28);
  background: transparent;
  padding-left: 2px;
}
.pcb-wf-inline--heading .pcb-wf-inline-title {
  font-size: 14px;
  color: #e5e7eb;
}
.pcb-wf-inline--note {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(12, 74, 110, 0.28);
}
.pcb-wf-inline--note .pcb-wf-inline-kicker { color: #7dd3fc; }
.pcb-wf-inline--warning {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(120, 53, 15, 0.28);
}
.pcb-wf-inline--warning .pcb-wf-inline-kicker { color: #fcd34d; }
.pcb-wf-inline--reminder {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(120, 53, 15, 0.22);
}
.pcb-wf-inline--reminder .pcb-wf-inline-kicker { color: #fde68a; }
.pcb-wf-inline--gate {
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(76, 29, 149, 0.22);
}
.pcb-wf-inline--gate .pcb-wf-inline-kicker { color: #ddd6fe; }
.pcb-wf-inline--checkpoint {
  border-color: rgba(45, 212, 191, 0.35);
  background: rgba(19, 78, 74, 0.22);
}
.pcb-wf-inline--checkpoint .pcb-wf-inline-kicker { color: #5eead4; }
.pcb-wf-inline[data-pcb-inline-done="1"] {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(6, 78, 59, 0.22);
}
.pcb-wf-row[data-pcb-bucket-absorbed="1"] {
  display: none !important;
}
.pcb-wf-row.is-section-label,
.pcb-wf-row[data-pcb-bucket-surface="section_label"] {
  margin: 8px 0 2px;
}
.pcb-wf-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  line-height: 1.3;
  padding: 0 2px;
  word-break: break-word;
}
.pcb-card-blockers {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 8px;
  min-width: 0;
}
.pcb-card-blocker {
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(120, 53, 15, 0.22);
  color: #fde68a;
  min-width: 0;
}
.pcb-card-blocker-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 2px;
}
.pcb-card-blocker-title {
  font-size: 12px;
  font-weight: 600;
  color: #fef3c7;
  word-break: break-word;
}
.pcb-guide-workflow-note {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}
.pcb-guide-workflow-note-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7dd3fc;
}
.pcb-guide-workflow-note-title,
.pcb-guide-workflow-note-body {
  font-size: 12px;
  color: #e0f2fe;
  word-break: break-word;
  margin: 2px 0 0;
}
.pcb-presentation-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pcb-presentation-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.pcb-presentation-popup-card {
  position: relative;
  width: min(28rem, 100%);
  max-height: min(80vh, 32rem);
  overflow: auto;
  background: #0f172a;
  color: #e5e7eb;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}
.pcb-presentation-popup-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fbbf24;
}
.pcb-presentation-popup-title { font-size: 16px; font-weight: 650; margin-top: 4px; }
.pcb-presentation-popup-body { font-size: 13px; color: #cbd5e1; margin: 8px 0 0; }
.pcb-presentation-popup-actions { margin-top: 14px; display: flex; justify-content: flex-end; }
.pcb-presentation-popup-btn {
  border: 0;
  border-radius: 10px;
  background: #00A854;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  padding: 8px 12px;
}
@media (max-width: 390px) {
  #commandCaseDetailContent .pcb-case-workflow-grid,
  #commandCaseDetailPanel .pcb-case-workflow-grid,
  #acctInfoWorkspaceHost .pcb-case-workflow-grid {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  #commandCaseDetailContent .pcb-wf-row,
  #commandCaseDetailContent .pcb-canvas,
  #commandCaseDetailContent .pcb-canvas-shell,
  #commandCaseDetailContent .pcb-collapsible-card,
  #commandCaseDetailContent .pcb-client-details-card,
  #commandCaseDetailContent .cmd-svc-surface {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  #commandCaseDetailContent .pcb-canvas-title,
  #commandCaseDetailContent .pcb-wf-section-label,
  #commandCaseDetailContent .pcb-card-blocker-title {
    overflow-wrap: anywhere;
  }
  .pcb-card-blocker,
  .pcb-wf-section-label {
    padding-left: 8px;
    padding-right: 8px;
  }
}
.pcb-wf-rail {
  display: none !important;
}
.pcb-wf-rail-blank { display: none !important; }
.pcb-wf-rail-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #00A854;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px rgba(0, 168, 84, 0.18);
}
.pcb-wf-row-main { min-width: 0; width: 100%; }
.pcb-canvas-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #4b5563;
  color: #f9fafb;
  font-size: 11px;
  font-weight: 700;
  box-shadow: none;
}
.pcb-canvas-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-width: 0;
  width: 100%;
  align-items: start;
}
.pcb-canvas-shell > .pcb-canvas-body { min-width: 0; }
.pcb-canvas-shell--static {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  /* One visual canvas: body + guidelines share chrome (no orphan guide bar). */
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  min-width: 0;
  width: 100%;
}
.pcb-canvas-body--static {
  min-width: 0;
  width: 100%;
}
/* Inner cards drop their own chrome when owned by the static shell. */
#commandCaseDetailPanel.pcb-workspace .pcb-canvas-shell--static > .pcb-canvas-body--static > .cmd-svc-surface,
#commandCaseDetailPanel.pcb-workspace .pcb-canvas-shell--static > .pcb-canvas-body--static > .pcb-client-details-card,
#commandCaseDetailPanel.pcb-workspace .pcb-canvas-shell--static .pcb-svc-stack > .cmd-svc-surface {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
}
/* Owned step numbers live inside the Service / Case Details card — not a gutter rail. */
.pcb-canvas-num-badge--owned,
.pcb-canvas-num-badge--static {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #4b5563;
  color: #f9fafb;
  font-size: 11px;
  font-weight: 700;
  box-shadow: none;
}
.pcb-step-num-jug,
.pcb-canvas-num-badge,
.pcb-cw-step-num {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #4b5563;
  color: #f9fafb;
  box-shadow: none;
}
.pcb-step-num-jug::before,
.pcb-canvas-num-badge::before,
.pcb-cw-step-num::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--step-fill, 0%);
  background: #00A854;
  z-index: -1;
  pointer-events: none;
}
.pcb-step-num-jug.is-full,
.pcb-canvas-num-badge.is-full,
.pcb-cw-step-num.is-full {
  box-shadow: 0 0 0 3px rgba(0, 168, 84, 0.18);
}
.cmd-svc-surface,
.pcb-client-details-card {
  position: relative;
}
.cmd-svc-surface > .pcb-canvas-num-badge--owned,
.cmd-svc-surface > .pcb-canvas-num-badge--static,
.pcb-client-details-card > .pcb-canvas-num-badge--owned,
.pcb-client-details-card > .pcb-canvas-num-badge--static {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}
.cmd-svc-surface > .pcb-canvas-num-badge--owned ~ .pcb-svc-name,
.cmd-svc-surface > .pcb-canvas-num-badge--static ~ .pcb-svc-name,
.pcb-client-details-card > .pcb-canvas-num-badge--owned ~ .pcb-client-details-kicker,
.pcb-client-details-card > .pcb-canvas-num-badge--static ~ .pcb-client-details-kicker {
  padding-left: 34px;
}
.pcb-wf-guide-panel {
  display: block;
  min-width: 0;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  overflow: hidden;
  align-self: stretch;
}
.pcb-canvas-shell--static > .pcb-wf-guide-panel {
  margin: 0;
}
.pcb-wf-guide-panel.is-collapsed .pcb-wf-guide-body { display: none; }
.pcb-wf-guide-inline-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  margin: 0;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
}
.pcb-wf-guide-inline-toggle .pcb-wf-guide-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}
.pcb-wf-guide-chevron {
  font-size: 12px;
  color: #94a3b8;
  transition: transform 0.15s ease;
}
.pcb-wf-guide-panel:not(.is-collapsed) .pcb-wf-guide-chevron {
  transform: rotate(180deg);
}
.pcb-wf-guide-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding: 10px 12px 0;
}
.pcb-wf-guide-head--desktop { display: none; }
.pcb-wf-guide-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}
.pcb-wf-guide-toggle {
  font-size: 11px;
  color: #cbd5e1;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.pcb-wf-guide-body {
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.45;
  padding: 0 12px 12px;
  max-height: min(42vh, 320px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.pcb-guide-list { margin: 0 0 8px; padding-left: 1.1rem; }
.pcb-guide-scope { margin-bottom: 10px; }
.pcb-wf-guide-body:has(.pcb-guide-manual) {
  max-height: min(72vh, 760px);
}
.pcb-guide-manual {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.55;
}
.pcb-guide-manual-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.pcb-guide-manual-section { margin: 0; }
.pcb-guide-manual-heading {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
.pcb-guide-field-label {
  margin: 6px 0 2px;
  font-size: 11px;
  font-weight: 700;
}
.pcb-guide-line { margin: 0 0 6px; }
.pcb-guide-link {
  color: #7dd3fc;
  text-decoration: underline;
  overflow-wrap: anywhere;
}
body:not(.app-theme-dark) .pcb-guide-link { color: #0369a1; }
.pcb-guide-scope-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}
.pcb-guide-empty { color: #94a3b8; font-size: 12px; }
.pcb-capability-proof {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.pcb-capability-proof-status {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}
.pcb-capability-proof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pcb-capability-proof-actions .pcb-doc-act,
.pcb-capability-proof-actions .cmd-svc-view-forms {
  flex: 0 1 auto;
  white-space: nowrap;
  max-width: 100%;
}
.pcb-capability-proof-note {
  font-size: 11px;
  color: #94a3b8;
}
/* Legacy mobile-btn class kept unused (workflow uses inline drawer). */
.pcb-wf-guide-mobile-btn { display: none !important; }

/* Continuous app surface transitions (no full-page reload feel). */
#commandCaseDetailPanel.pcb-workspace,
#pdfToolsModal,
#resultsHistoryModal,
#unifiedWorkLogModal,
#serviceFormsModal {
  transition: opacity 160ms ease;
}
#commandCaseDetailPanel.pcb-case-surface-enter {
  opacity: 0.78;
}
@media (prefers-reduced-motion: reduce) {
  #commandCaseDetailPanel.pcb-workspace,
  #pdfToolsModal,
  #resultsHistoryModal,
  #unifiedWorkLogModal,
  #serviceFormsModal,
  #commandCaseDetailPanel.pcb-case-surface-enter {
    transition: none !important;
    opacity: 1 !important;
  }
}

@media (min-width: 768px) {
  .pcb-wf-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .pcb-wf-rail { display: none !important; }
  .pcb-canvas-num-badge { display: inline-flex; }
  .pcb-canvas-num-badge--static { display: inline-flex; }
  .pcb-canvas-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 0;
    align-items: start;
  }
  .pcb-canvas-shell--static {
    gap: 0;
  }
  .pcb-canvas-shell > .pcb-canvas-body,
  .pcb-canvas-shell--static > .pcb-canvas-body,
  .pcb-canvas-shell--static > .pcb-canvas-body--static {
    grid-column: 1;
    min-width: 0;
  }
  .pcb-canvas-shell > .pcb-wf-guide-panel,
  .pcb-canvas-shell--static > .pcb-wf-guide-panel {
    display: block;
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 10px 12px;
    align-self: stretch;
    height: auto;
    max-height: none;
    border-top: none;
    border-left: 1px solid rgba(148, 163, 184, 0.28);
  }
  .pcb-canvas-shell--static > .pcb-wf-guide-panel {
    background: rgba(15, 23, 42, 0.32);
  }
  .pcb-canvas-shell--static > :not(.pcb-wf-guide-panel):not(.pcb-canvas-num-badge) {
    grid-column: 1;
    min-width: 0;
  }
  .pcb-wf-guide-inline-toggle { display: none; }
  .pcb-wf-guide-head,
  .pcb-wf-guide-head--desktop {
    display: flex;
    padding: 0;
  }
  .pcb-wf-guide-body {
    max-height: none;
    overflow: visible;
    padding: 0;
  }
  .pcb-wf-row.is-utility {
    grid-template-columns: minmax(0, 1fr);
  }
  .pcb-wf-row.is-utility .pcb-canvas-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .pcb-wf-row[data-section="intake-progress"] .pcb-canvas-shell,
  .pcb-wf-row[data-section="intake-progress"] .pcb-canvas-shell--static,
  .pcb-canvas--intake .pcb-canvas-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .pcb-wf-row[data-section="intake-progress"] .pcb-canvas-shell > .pcb-canvas-body,
  .pcb-wf-row[data-section="intake-progress"] .pcb-canvas-shell--static > .pcb-canvas-body,
  .pcb-wf-row[data-section="intake-progress"] .pcb-canvas-shell--static > .pcb-canvas-body--static,
  .pcb-canvas--intake .pcb-canvas-shell > .pcb-canvas-body {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: none;
  }
  .pcb-wf-row[data-section="intake-progress"] .pcb-canvas-shell > .pcb-wf-guide-panel,
  .pcb-wf-row[data-section="intake-progress"] .pcb-canvas-shell--static > .pcb-wf-guide-panel,
  .pcb-canvas--intake .pcb-canvas-shell > .pcb-wf-guide-panel {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: none;
    border-left: none;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
    align-self: stretch;
  }
}

/* Mobile guidelines popup */
.pcb-guidelines-popup {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.pcb-guidelines-popup[hidden] { display: none !important; }
.pcb-guidelines-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.pcb-guidelines-popup-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 82vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 18px 18px 0 0;
  background: #1a1a1a;
  border: 1px solid rgba(148, 163, 184, 0.3);
}
.pcb-guidelines-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}
.pcb-guidelines-popup-title { margin: 0; font-size: 14px; font-weight: 700; color: #f8fafc; }
.pcb-guidelines-popup-x {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.pcb-guidelines-popup-body {
  overflow-y: auto;
  padding: 12px 14px 20px;
  -webkit-overflow-scrolling: touch;
}
body.pcb-guidelines-popup-open { overflow: hidden; }

/* Case Workflow tool modal (not inline duplicate canvas) */
.pcb-case-workflow-tool-modal {
  position: fixed;
  inset: 0;
  z-index: 88;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.pcb-case-workflow-tool-modal[hidden] { display: none !important; }
.pcb-case-workflow-tool-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.pcb-case-workflow-tool-sheet {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: 88vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: #1a1a1a;
  border: 1px solid rgba(148, 163, 184, 0.3);
}
.pcb-case-workflow-tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  color: #f8fafc;
}
.pcb-case-workflow-tool-x {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
}
.pcb-case-workflow-tool-body {
  overflow: auto;
  padding: 12px 14px 18px;
  min-height: 0;
}
body.pcb-case-workflow-tool-open { overflow: hidden; }

body:not(.app-theme-dark) .pcb-wf-guide-panel {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.12);
}
body:not(.app-theme-dark) .pcb-wf-guide-body,
body:not(.app-theme-dark) .pcb-wf-guide-title { color: #0f172a; }
body:not(.app-theme-dark) .pcb-guide-empty { color: #64748b; }

@media (min-width: 768px) {
  .pcb-case-workflow-grid {
    /* single column of paired rows — max 2 columns inside each row */
  }
}

/* legacy pair areas retired — rows own alignment */
.pcb-tools-host .pcb-workflow-wrap { display: none !important; }



/* Pardna pixel-match — Case Workflow surface only */
#commandCaseDetailPanel.pcb-workspace .pcb-client-details-kicker {
  font-size: 15px;
  font-weight: 800;
  color: #f9fafb;
  margin-bottom: 10px;
}
#commandCaseDetailPanel.pcb-workspace .pcb-case-identity,
#acctCustomerCaseShell .pcb-case-identity,
#acctBusinessWorkspace [data-section="case-header"] .pcb-case-identity {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.pcb-case-card .pcb-case-identity,
#tab-command .pcb-case-card .pcb-case-identity,
#prdnaBucketCaseList .pcb-case-card .pcb-case-identity {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 12px !important;
}
.pcb-case-card .acct-ov-order-identity,
#tab-command .pcb-case-card .acct-ov-order-identity,
#prdnaBucketCaseList .pcb-case-card .acct-ov-order-identity {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}
.pcb-case-card .acct-ov-order-applicant,
#tab-command .pcb-case-card .acct-ov-order-applicant,
#prdnaBucketCaseList .pcb-case-card .acct-ov-order-applicant {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.pcb-case-card .tracker-case-icon,
.pcb-case-card .acct-ov-order-thumb {
  flex: 0 0 auto;
}
@media (max-width: 767px) {
  #tab-command #commandCaseDetailPanel.pcb-workspace [data-section="case-header"] .pcb-client-details-card,
  #acctBusinessWorkspace [data-section="case-header"] .pcb-client-details-card {
    display: flex;
    flex-direction: column;
  }
}
@media (min-width: 768px) {
  #tab-command #commandCaseDetailPanel.pcb-workspace [data-section="case-header"] .pcb-client-details-card,
  #acctBusinessWorkspace [data-section="case-header"] .pcb-client-details-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 28px;
    align-items: start;
  }
  #tab-command #commandCaseDetailPanel.pcb-workspace [data-section="case-header"] .pcb-cw-step-head,
  #acctBusinessWorkspace [data-section="case-header"] .pcb-cw-step-head {
    grid-column: 1 / -1;
  }
  #tab-command #commandCaseDetailPanel.pcb-workspace [data-section="case-header"] .pcb-case-divider,
  #acctBusinessWorkspace [data-section="case-header"] .pcb-case-divider {
    display: none;
  }
}
.pcb-case-id-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.pcb-case-id-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  flex: 0 0 auto;
}
.pcb-case-id-value {
  font-size: 13px;
  font-weight: 700;
  color: #f9fafb;
  text-align: right;
  min-width: 0;
  word-break: break-word;
}
.pcb-case-applicant {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #f9fafb;
}
.pcb-case-divider,
.pcb-svc-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin: 12px 0;
  border: 0;
}
.pcb-case-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pcb-case-control-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.pcb-case-control-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}
.pcb-case-control-value { min-width: 0; }
.pcb-case-control-select {
  width: 100%;
  min-height: 36px;
  font-size: 13px;
  font-weight: 600;
}
.pcb-case-control-readonly {
  display: block;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(15, 23, 42, 0.45);
  color: #f9fafb;
  font-size: 13px;
  font-weight: 600;
  box-sizing: border-box;
}
.pcb-case-controls .svc-leads-wrap { width: 100%; max-width: 100%; }
.pcb-case-controls .svc-leads-details summary {
  min-height: 36px;
  padding: 8px 10px;
}
.pcb-case-controls .pcb-case-control-select,
.pcb-case-controls #commandCaseLifecycleSelect {
  color: #f9fafb;
}
.pcb-svc-price {
  margin: 2px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
}
.pcb-svc-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}
#commandCaseDetailPanel.pcb-workspace .pcb-svc-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  background: #e5e7eb;
  color: #111827;
  border: 0;
}
#commandCaseDetailPanel.pcb-workspace .pcb-svc-tag--muted { background: #e5e7eb; color: #111827; }
#commandCaseDetailPanel.pcb-workspace .pcb-svc-tag--stage { background: #ddd6fe; color: #5b21b6; }
#commandCaseDetailPanel.pcb-workspace .pcb-svc-tag--warn { background: #ffedd5; color: #9a3412; }
#commandCaseDetailPanel.pcb-workspace .pcb-svc-tag--ok { background: #dcfce7; color: #166534; }
#commandCaseDetailPanel.pcb-workspace .pcb-svc-tag--pay { background: #dcfce7; color: #166534; }
#commandCaseDetailPanel.pcb-workspace .pcb-svc-tag--vip { background: #ede9fe; color: #6b21a8; }
#commandCaseDetailPanel.pcb-workspace .pcb-svc-tag--bio { background: #e0f2fe; color: #075985; }
.pcb-portal-copy {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #94a3b8;
}
.pcb-portal-vip {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #c4b5fd;
}
.pcb-portal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
#commandCaseDetailPanel.pcb-workspace .pcb-client-details-contact,
#commandCaseDetailPanel.pcb-workspace .pcb-native-select-host,
#commandCaseDetailPanel.pcb-workspace .pcb-svc-drive-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
#commandCaseDetailPanel.pcb-workspace .text-gray-900,
#commandCaseDetailPanel.pcb-workspace .text-gray-800,
#commandCaseDetailPanel.pcb-workspace .text-gray-700,
#commandCaseDetailPanel.pcb-workspace .text-gray-600 {
  color: #f9fafb !important;
}
/* Intake question labels sit on white field cards. The rule above paints
   text-gray-600 near-white for dark workspace chrome, which hides the questions. */
#commandCaseDetailPanel.pcb-workspace .intake-form-section [data-fm-preview-question] label,
#commandCaseDetailPanel.pcb-workspace .intake-form-section .intake-field-block > label,
#commandCaseDetailPanel.pcb-workspace .intake-form-section .intake-field-na-btn,
#commandCaseDetailPanel.pcb-workspace .intake-form-section .intake-na-pair__btn {
  color: #1f2937 !important;
}
#commandCaseDetailPanel.pcb-workspace .intake-form-section .intake-na-pair--active .intake-na-pair__btn {
  color: #15803d !important;
}
#commandCaseDetailPanel.pcb-workspace .intake-form-section [data-fm-preview-question] :is(input, textarea, select):disabled {
  color: #1f2937 !important;
  opacity: 1;
}
#commandCaseDetailPanel.pcb-workspace .intake-form-section .intake-save-btn {
  color: #1f2937 !important;
  background: #fff !important;
  border: 1px solid #d1d5db !important;
}
#commandCaseDetailPanel.pcb-workspace .intake-form-section .intake-finish-remaining {
  color: #15803d !important;
}
body.app-theme-dark #commandCaseDetailPanel.pcb-workspace .intake-form-section [data-fm-preview-question] label,
body.app-theme-dark #commandCaseDetailPanel.pcb-workspace .intake-form-section .intake-field-block > label,
body.app-theme-dark #commandCaseDetailPanel.pcb-workspace .intake-form-section .intake-field-na-btn,
body.app-theme-dark #commandCaseDetailPanel.pcb-workspace .intake-form-section .intake-na-pair__btn {
  color: #e5e7eb !important;
}
body.app-theme-dark #commandCaseDetailPanel.pcb-workspace .intake-form-section .intake-na-pair--active .intake-na-pair__btn {
  color: #86efac !important;
}
body.app-theme-dark #commandCaseDetailPanel.pcb-workspace .intake-form-section [data-fm-preview-question] :is(input, textarea, select):disabled {
  color: #e5e7eb !important;
  opacity: 1;
}
#commandCaseDetailPanel.pcb-workspace .text-gray-500 {
  color: #94a3b8 !important;
}
#commandCaseDetailPanel.pcb-workspace .text-gray-400,
#commandCaseDetailPanel.pcb-workspace .text-gray-300 {
  color: #cbd5e1 !important;
}
#commandCaseDetailPanel.pcb-workspace .text-gray-200,
#commandCaseDetailPanel.pcb-workspace .text-gray-100 {
  color: #f9fafb !important;
}
#commandCaseDetailPanel.pcb-workspace .pcb-meta,
#commandCaseDetailPanel.pcb-workspace .pcb-canvas-status {
  color: #94a3b8;
}
#commandCaseDetailPanel.pcb-workspace .pcb-canvas-status.is-alert { color: #fb923c; }
#commandCaseDetailPanel.pcb-workspace .pcb-canvas-status.is-ok { color: #34d399; }
#commandCaseDetailPanel.pcb-workspace .pcb-doc-row-state.is-missing { color: #f87171; }
#commandCaseDetailPanel.pcb-workspace .pcb-doc-row-state.is-pending,
#commandCaseDetailPanel.pcb-workspace .pcb-doc-row-state.is-stale { color: #fb923c; }
#commandCaseDetailPanel.pcb-workspace .pcb-doc-row-state.is-ok { color: #34d399; }
#commandCaseDetailPanel.pcb-workspace .pcb-doc-group-head { color: #94a3b8; }
#commandCaseDetailPanel.pcb-workspace .pcb-doc-card {
  display: grid !important;
  grid-template-columns: minmax(112px, 34%) minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  align-items: stretch;
  background: #111827 !important;
  border: 1px solid #374151 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
#commandCaseDetailPanel.pcb-workspace .pcb-doc-guide-panel {
  background: #374151 !important;
  border: 0 !important;
  border-top: 1px solid rgba(147, 197, 253, 0.28) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: auto;
}
#commandCaseDetailPanel.pcb-workspace .pcb-doc-guide-toggle {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 48%, #1e40af 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
#commandCaseDetailPanel.pcb-workspace .pcb-canvas-title { color: #f9fafb; }

.pcb-svc-status-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 10px 0 4px;
}
@media (min-width: 640px) {
  .pcb-svc-status-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.pcb-status-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  min-width: 0;
  color: #e5e7eb;
}
.pcb-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid transparent;
  color: #e5e7eb;
}
.pcb-status-pill.is-ok { background: rgba(16, 185, 129, 0.22); color: #6ee7b7; border-color: rgba(52, 211, 153, 0.35); }
.pcb-status-pill.is-warn { background: rgba(245, 158, 11, 0.22); color: #fdba74; border-color: rgba(251, 146, 60, 0.4); }
.pcb-status-pill.is-info { background: rgba(59, 130, 246, 0.22); color: #93c5fd; border-color: rgba(96, 165, 250, 0.4); }
.pcb-status-pill.is-muted { background: rgba(75, 85, 99, 0.55); color: #e5e7eb; border-color: rgba(156, 163, 175, 0.35); }
.pcb-status-caption {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1.15;
  text-align: center;
}

.cmd-svc-surface { position: relative; padding-top: 12px; }
.pcb-svc-name {
  font-size: 15px;
  font-weight: 800;
  color: #f9fafb;
  line-height: 1.3;
  padding-right: 28px;
}
.pcb-svc-admin {
  position: absolute;
  top: 8px;
  right: 8px;
  margin: 0;
  border: 0;
  background: transparent;
  z-index: 4;
  overflow: visible;
}
.pcb-svc-admin-summary {
  list-style: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #94a3b8;
  padding: 2px 8px;
  line-height: 1;
}
.pcb-svc-admin[open] {
  background: rgba(17, 24, 39, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  min-width: 220px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}
.pcb-svc-admin[open] .pcb-svc-admin-body { padding: 0 10px 10px; }
.pcb-portal-block {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.55);
}
.pcb-portal-block.pcb-portal-canvas {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
.pcb-portal-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 6px;
}
.pcb-portal-open-btn,
#commandCaseDetailPanel.pcb-workspace .pcb-portal-open-btn {
  width: 100%;
  min-height: 42px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 10px;
  background: #00A854 !important;
  color: #fff !important;
  border: 0;
}
.pcb-svc-portal-actions { width: 100%; }

.pcb-chat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  box-sizing: border-box;
  max-width: 100%;
}
.pcb-chat-copy { min-width: 0; flex: 1 1 180px; }
.pcb-chat-desc {
  margin: 4px 0 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}
.pcb-chat-open {
  flex: 0 0 auto;
  min-height: 40px;
  min-width: 140px;
  border-radius: 10px;
  font-weight: 800;
}
.pcb-intake-after {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.pcb-intake-collapse {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 4px 12px 10px;
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.pcb-intake-collapse:hover,
.pcb-intake-collapse:focus-visible {
  color: #34d399;
}
.pcb-intake-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.pcb-intake-actions:empty { display: none; }
.pcb-intake-actions .pcb-form-complete-btn,
.pcb-intake-actions #commandCaseCompleteViaChatBtn {
  width: 100%;
  min-height: 42px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 10px;
}
.pcb-intake-extras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}
.pcb-intake-extras > .pcb-card-log-work {
  min-height: 44px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid #374151;
  border-radius: 12px;
  background: #1f2937;
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.pcb-intake-drawer {
  min-width: 0;
  border: 1px solid #374151;
  border-radius: 12px;
  background: #1f2937;
  overflow: hidden;
}
.pcb-intake-drawer-sum {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 8px;
  font-size: 12px;
  font-weight: 800;
  color: #e5e7eb;
  cursor: pointer;
  list-style: none;
  text-align: center;
}
.pcb-intake-drawer-sum::-webkit-details-marker { display: none; }
.pcb-intake-drawer[open] > .pcb-intake-drawer-sum {
  color: #34d399;
  background: rgba(0, 168, 84, 0.12);
  box-shadow: inset 0 -2px 0 #00A854;
}
.pcb-intake-drawer-body { padding: 8px 10px 12px; }
.pcb-intake-extra-title {
  font-size: 12px;
  font-weight: 800;
  color: #f9fafb;
  margin-bottom: 4px;
}
.pcb-intake-extra-help {
  font-size: 11px;
  color: #94a3b8;
  margin: 0 0 8px;
  line-height: 1.35;
}
.pcb-lock-toggle {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pcb-lock-chip {
  flex: 1 1 auto;
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 24, 39, 0.6);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  cursor: default;
}
.pcb-lock-chip.is-on {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}
.pcb-lock-chip.is-locked {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(251, 146, 60, 0.45);
  color: #fdba74;
}
button.pcb-lock-chip { cursor: pointer; }
.pcb-app-form-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #f9fafb;
}
.pcb-app-form-meta .pcb-app-form-pct { color: #fb923c; font-weight: 700; }
.pcb-app-form-meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(75, 85, 99, 0.85);
  overflow: hidden;
}
.pcb-app-form-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: #00A854;
}
.pcb-app-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin: 12px 0;
  border: 0;
}
.pcb-form-view-btn {
  width: 100%;
  min-height: 36px;
  font-weight: 700;
}
.pcb-doc-remaining {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #f87171;
}
.pcb-doc-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.pcb-doc-footer .pcb-doc-remaining {
  flex: 1 1 100%;
}
.pcb-pay-balance {
  color: #fb923c !important;
  font-weight: 800;
}
#commandCaseDetailPanel.pcb-workspace .pcb-pay-balance { color: #fb923c !important; }
.pcb-doc-footer .pcb-doc-upload-cta {
  width: auto;
  flex: 1 1 auto;
  min-height: 40px;
  margin-top: 0;
  border-radius: 10px;
  background: #00A854;
  border-color: #00A854;
  color: #fff;
  font-weight: 800;
}
.pcb-doc-footer .pcb-card-log-work {
  flex: 0 1 auto;
  min-height: 40px;
}
.pcb-prepared-footer {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.pcb-prepared-footer .pcb-doc-act { flex: 1 1 0; min-height: 36px; font-weight: 800; }
.pcb-prepared-footer .pcb-doc-upload-cta { background: #00A854; border-color: #00A854; color: #fff; }
.pcb-library-drive-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.pcb-library-drive-bar[hidden] { display: none !important; }
.pcb-library-drive-btn {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #00A854;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
}
@media (min-width: 768px) {
  .pcb-intake-extras {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    align-items: start;
  }
}
#commandCaseDetailPanel.pcb-workspace .pcb-footer-help {
  display: none;
}
#commandCaseDetailPanel.pcb-workspace .pcb-client-stage-row p { display: none; }

body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent [data-section="case-header"] [data-shell-field="case-stage"],
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent [data-section="case-header"] .case-stage-badge {
  background: rgba(51, 65, 85, 0.85) !important;
  color: #e2e8f0 !important;
}
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent [data-section="case-header"] .bg-emerald-900\/40 {
  background: rgba(6, 78, 59, 0.65) !important;
  color: #6ee7b7 !important;
}
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent [data-section="case-header"] .bg-slate-800 {
  background: rgba(51, 65, 85, 0.85) !important;
  color: #e2e8f0 !important;
  border-color: #64748b !important;
}

body.app-theme-dark .pcb-sort-menu {
  background: #1f2937;
  border-color: #374151;
  color: #f9fafb;
}
body.app-theme-dark .pcb-sort-option { color: #f9fafb; }
body.app-theme-dark .pcb-priority-stage--start {
  color: #fdba74;
  border-color: rgba(251, 146, 60, 0.55);
  background: rgba(234, 88, 12, 0.18);
}
body.app-theme-dark .pcb-priority-stage--submit {
  color: #fde68a;
  border-color: rgba(250, 204, 21, 0.55);
  background: rgba(202, 138, 4, 0.18);
}
body.app-theme-dark .pcb-priority-stage--review {
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(37, 99, 235, 0.2);
}
body.app-theme-dark .pcb-priority-stage--submitted {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(16, 185, 129, 0.18);
}
body.app-theme-dark .pcb-row1-ai {
  color: #c4b5fd !important;
  border-color: rgba(167, 139, 250, 0.65) !important;
  background: rgba(109, 40, 217, 0.22) !important;
}
body.app-theme-dark .pcb-case-tag--bio {
  color: #5eead4;
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(13, 148, 136, 0.2);
}
body.app-theme-dark .pcb-ai-role-pill {
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(109, 40, 217, 0.25);
}

/* Case Workflow stays Pardna-dark even when Command chrome is light */
body:not(.app-theme-dark) #tab-command #commandCaseDetailPanel.pcb-workspace,
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace {
  --pcb-text: #f9fafb;
  --pcb-muted: #94a3b8;
  --pcb-meta: #94a3b8;
  --pcb-border: rgba(255, 255, 255, 0.12);
  --pcb-surface: rgba(30, 41, 59, 0.78);
  --pcb-wash: rgba(15, 23, 42, 0.72);
  background: #0b0f14 !important;
  color: #f9fafb !important;
}
body:not(.app-theme-dark) #tab-command #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent,
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent {
  color: #f9fafb !important;
}
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent [data-section]:not([data-section="primary-actions"]):not([data-section="case-fetch-error"]):not([data-section="account-contact"]):not([data-section="guidelines"]):not([data-section="notes"]):not([data-section="service-summary"]):not([data-section="intake-progress"]):not([data-section="required-documents"]):not([data-section="prepared-documents"]):not([data-section="payment"]) {
  background: rgba(30, 41, 59, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  color: #f9fafb !important;
}
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent [class*="[#1e1e1e]"],
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent [class*="[#252525]"],
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent [class*="[#1a1a1a]"] {
  background-color: rgba(30, 41, 59, 0.78) !important;
  color: #f9fafb !important;
}
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent .text-gray-100,
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent .text-gray-200,
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent [data-section] .text-gray-100,
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent [data-section] .text-gray-200,
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent [data-section] .text-gray-300 {
  color: #f9fafb !important;
}
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent .text-gray-300,
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent .text-gray-400,
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent .text-gray-500 {
  color: #94a3b8 !important;
}
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent .border-gray-600,
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent .border-gray-700 {
  border-color: rgba(255, 255, 255, 0.12) !important;
}
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent .border-gray-600.text-gray-300 {
  color: #cbd5e1 !important;
}
body:not(.app-theme-dark) #tab-command #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent textarea,
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent textarea {
  background: #111827 !important;
  border-color: #374151 !important;
  color: #f9fafb !important;
}
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace .pcb-client-details-kicker,
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace .pcb-canvas-title,
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace .pcb-tools-title {
  color: #f9fafb !important;
}
#commandCaseDetailPanel.pcb-workspace .pcb-canvas-status.is-progress { color: #fb923c !important; }
#commandCaseDetailPanel.pcb-workspace .pcb-canvas-status.is-alert { color: #f87171 !important; }
#commandCaseDetailPanel.pcb-workspace .pcb-canvas-status.is-ok { color: #34d399 !important; }
#commandCaseDetailPanel.pcb-workspace .pcb-app-form-pct { color: #fb923c !important; }
#commandCaseDetailPanel.pcb-workspace .pcb-doc-remaining { color: #f87171 !important; }
#commandCaseDetailPanel.pcb-workspace .pcb-doc-row[data-pcb-doc-state="missing"] .pcb-doc-row-name { color: #f87171 !important; }
#commandCaseDetailPanel.pcb-workspace .pcb-doc-row[data-pcb-doc-state="missing-optional"] .pcb-doc-row-name,
#commandCaseDetailPanel.pcb-workspace .pcb-doc-row-state.is-missing-optional { color: #60a5fa !important; }
#commandCaseDetailPanel.pcb-workspace .pcb-doc-row[data-pcb-doc-state="stale"] .pcb-doc-row-name,
#commandCaseDetailPanel.pcb-workspace .pcb-doc-row[data-pcb-doc-state="pending"] .pcb-doc-row-name { color: #fb923c !important; }
#commandCaseDetailPanel.pcb-workspace .pcb-doc-row[data-pcb-doc-state="ok"] .pcb-doc-row-name { color: #34d399 !important; }

/* Case Workflow scoped typography — Pardna dark cards, both Command themes */
#commandCaseDetailPanel.pcb-workspace .pcb-canvas--expander > summary .pcb-canvas-title {
  color: #34d399 !important;
}
#commandCaseDetailPanel.pcb-workspace .pcb-app-form-meta,
#commandCaseDetailPanel.pcb-workspace .pcb-svc-name,
#commandCaseDetailPanel.pcb-workspace .pcb-chat-copy .pcb-canvas-title,
#commandCaseDetailPanel.pcb-workspace .pcb-intake-extra-title,
#commandCaseDetailPanel.pcb-workspace .pcb-tools-title {
  color: #f9fafb !important;
}
#commandCaseDetailPanel.pcb-workspace .pcb-chat-desc,
#commandCaseDetailPanel.pcb-workspace .pcb-intake-extra-help,
#commandCaseDetailPanel.pcb-workspace .pcb-portal-kicker,
#commandCaseDetailPanel.pcb-workspace .pcb-status-caption,
#commandCaseDetailPanel.pcb-workspace .pcb-meta,
#commandCaseDetailPanel.pcb-workspace .pcb-tools-group-label,
#commandCaseDetailPanel.pcb-workspace .pcb-tools-chevron,
#commandCaseDetailPanel.pcb-workspace .pcb-case-id-label,
#commandCaseDetailPanel.pcb-workspace .pcb-case-control-label,
#commandCaseDetailPanel.pcb-workspace .pcb-svc-price,
#commandCaseDetailPanel.pcb-workspace .pcb-portal-copy {
  color: #94a3b8 !important;
}
#commandCaseDetailPanel.pcb-workspace .pcb-case-id-value,
#commandCaseDetailPanel.pcb-workspace .pcb-case-applicant,
#commandCaseDetailPanel.pcb-workspace .pcb-case-control-readonly {
  color: #f9fafb !important;
}
#commandCaseDetailPanel.pcb-workspace .pcb-portal-vip {
  color: #c4b5fd !important;
}
#commandCaseDetailPanel.pcb-workspace .pcb-wf-label {
  color: #9ca3af;
}
#commandCaseDetailPanel.pcb-workspace .pcb-wf-step.is-done .pcb-wf-label,
#commandCaseDetailPanel.pcb-workspace .pcb-wf-step.is-current .pcb-wf-label {
  color: #6ee7b7;
}
#commandCaseDetailPanel.pcb-workspace input,
#commandCaseDetailPanel.pcb-workspace select,
#commandCaseDetailPanel.pcb-workspace textarea {
  background: #111827 !important;
  border-color: #4b5563 !important;
  color: #f9fafb !important;
}
#commandCaseDetailPanel.pcb-workspace input::placeholder,
#commandCaseDetailPanel.pcb-workspace textarea::placeholder {
  color: #94a3b8 !important;
}
#commandCaseDetailPanel.pcb-workspace option {
  background: #111827;
  color: #f9fafb;
}
#commandCaseDetailPanel.pcb-workspace .pcb-case-footer-row button,
#commandCaseDetailPanel.pcb-workspace .pcb-case-footer-row select {
  background: #1f2937 !important;
  border: 1px solid #4b5563 !important;
  color: #e5e7eb !important;
}
#commandCaseDetailPanel.pcb-workspace button:disabled,
#commandCaseDetailPanel.pcb-workspace [disabled] {
  opacity: 0.55;
  color: #94a3b8;
}
#commandCaseDetailPanel.pcb-workspace .pcb-doc-act:disabled {
  color: #94a3b8;
}
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent input,
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent select,
body:not(.app-theme-dark) #tab-command #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent input,
body:not(.app-theme-dark) #tab-command #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent select {
  background: #111827 !important;
  border-color: #4b5563 !important;
  color: #f9fafb !important;
}
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace .pcb-canvas--expander > summary .pcb-canvas-title {
  color: #34d399 !important;
}

/* ===== Bucket flat header (layout-command) — presentation only ===== */
/* True-black / light canvas like Chats; hide PRDNA Business brand; host landing sticky in #ccTopBar. */

html body#commandBody.layout-command {
  background: var(--acct-shell-fade, linear-gradient(180deg, var(--acct-teal, #128C7E) 0%, var(--acct-shell-mid, #d7e8e2) 38%, var(--acct-shell, #e6ece9) 100%)) !important;
  background-color: var(--acct-shell, #e6ece9) !important;
  background-attachment: fixed !important;
}
html body#commandBody.layout-command main#ccMain,
html body#commandBody.layout-command main#ccMain.bg-white,
html body#commandBody.layout-command #tab-command.pcb-bucket-landing,
html body#commandBody.layout-command #tab-command.pcb-bucket-landing #commandScrollArea,
html body#commandBody.layout-command #tab-command.pcb-bucket-landing #commandGroupsPanel.pcb-landing-wrap {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}
html body#commandBody.app-theme-dark.layout-command,
html body#commandBody.app-theme-dark.layout-command main#ccMain,
html body#commandBody.app-theme-dark.layout-command #tab-command.pcb-bucket-landing,
html body#commandBody.app-theme-dark.layout-command #tab-command.pcb-bucket-landing #commandScrollArea,
html body#commandBody.app-theme-dark.layout-command #tab-command.pcb-bucket-landing #commandGroupsPanel {
  background: #111827 !important;
  background-color: #111827 !important;
}

html body#commandBody.layout-command header#ccTopBar,
html body#commandBody.layout-command header#ccTopBar.pcb-bucket-header {
  display: flex !important;
  visibility: visible !important;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #111827 !important;
  border-bottom: 0 !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  min-height: 0 !important;
  height: auto !important;
}
/* Title / Services|Orders|Bookings / search sit on the page fade — cards scroll under. */
html body#commandBody.layout-command:not(.app-theme-dark) main#ccMain {
  margin-top: 0 !important;
}
html body#commandBody.layout-command:not(.app-theme-dark) #tab-command.pcb-bucket-landing #commandScrollArea,
html body#commandBody.layout-command:not(.app-theme-dark) #tab-command.pcb-bucket-landing[data-pcb-surface="landing"] #commandScrollArea,
html body#commandBody.layout-command:not(.app-theme-dark) #tab-command.pcb-bucket-landing[data-pcb-surface="service"] #commandScrollArea {
  padding-top: var(--cc-top-bar-offset) !important;
}
html body#commandBody.app-theme-dark.layout-command header#ccTopBar,
html body#commandBody.app-theme-dark.layout-command header#ccTopBar.pcb-bucket-header {
  background: #111827 !important;
  background-color: #111827 !important;
  background-image: none !important;
  color: #ffffff !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

html body#commandBody.layout-command header#ccTopBar .pcb-brand-title,
html body#commandBody.layout-command header#ccTopBar .pcb-brand-meta,
html body#commandBody.layout-command header#ccTopBar .pcr-brand-title,
html body#commandBody.layout-command header#ccTopBar .pcr-brand-meta,
html body#commandBody.layout-command header#ccTopBar > h1:not(.pcr-chats-title) {
  display: none !important;
}

/* Safe-area follows the page fade — no paper-white slab */
html body#commandBody.layout-command header#ccTopBar::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: env(safe-area-inset-top, 0px);
  background: transparent !important;
  pointer-events: none;
  z-index: 0;
}
html body#commandBody.app-theme-dark.layout-command header#ccTopBar::before {
  background: #111827 !important;
}

html body#commandBody.layout-command header#ccTopBar > * {
  position: relative;
  z-index: 1;
}

/* Hosted landing sticky becomes the header chrome */
html body#commandBody.layout-command header#ccTopBar #prdnaBucketLandingStickyControls.pcb-landing-sticky-controls,
html body#commandBody.layout-command header#ccTopBar #prdnaBucketLandingStickyControls[data-pcb-hosted-top="1"],
html body#commandBody.layout-command header#ccTopBar #prdnaBucketStickyControls.pcb-svc-sticky-controls,
html body#commandBody.layout-command header#ccTopBar #prdnaBucketStickyControls[data-pcb-hosted-top="1"] {
  position: static !important;
  top: auto !important;
  z-index: 1;
  margin: 0 !important;
  padding: 0 0 2px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  width: 100%;
  pointer-events: auto;
}

/* Landing + service: top column is Bucket chrome — hide Chat #ccTopBarSearch mirror */
html body#commandBody.layout-command.pcb-bucket-landing-header header#ccTopBar #pcrChatsTitle,
html body#commandBody.layout-command.pcb-bucket-landing-header header#ccTopBar #pcrChatsTopActions,
html body#commandBody.layout-command.pcb-bucket-landing-header header#ccTopBar #pcrTopSearchSlot,
html body#commandBody.layout-command.pcb-bucket-landing-header header#ccTopBar #ccTopBarSearchRow,
html body#commandBody.layout-command.pcb-bucket-service-header header#ccTopBar #pcrChatsTitle,
html body#commandBody.layout-command.pcb-bucket-service-header header#ccTopBar #pcrChatsTopActions,
html body#commandBody.layout-command.pcb-bucket-service-header header#ccTopBar #pcrTopSearchSlot,
html body#commandBody.layout-command.pcb-bucket-service-header header#ccTopBar #ccTopBarSearchRow,
html body#commandBody.layout-command.pcb-bucket-hosted-header header#ccTopBar #ccTopBarSearchRow {
  display: none !important;
}

/* Beat Command cc-search-screen rule that hides every #ccTopBar > div except search row. */
html body#commandBody.layout-command.cc-search-screen header#ccTopBar > #prdnaBucketLandingStickyControls,
html body#commandBody.layout-command.cc-search-screen header#ccTopBar > #prdnaBucketLandingStickyControls[data-pcb-hosted-top="1"],
html body#commandBody.layout-command.cc-search-screen header#ccTopBar > #prdnaBucketStickyControls,
html body#commandBody.layout-command.cc-search-screen header#ccTopBar > #prdnaBucketStickyControls[data-pcb-hosted-top="1"] {
  display: block !important;
}

/* Hosted service chrome: compact two wrapper rows in #ccTopBar */
html body#commandBody.layout-command header#ccTopBar #prdnaBucketStickyControls[data-pcb-hosted-top="1"] .pcb-svc-chrome-row {
  padding: 2px 0 4px;
  min-height: 36px;
}
html body#commandBody.layout-command header#ccTopBar #prdnaBucketStickyControls[data-pcb-hosted-top="1"] .pcb-svc-chrome-mid #commandSearch {
  min-height: 36px;
  height: 36px;
}
html body#commandBody.layout-command header#ccTopBar #prdnaBucketStickyControls[data-pcb-hosted-top="1"] .pcb-svc-row3 {
  margin: 0;
}

/* Header category — cell lines (match landing; no oval pills) */
html body#commandBody.layout-command header#ccTopBar .pcb-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(128, 128, 128, 0.28);
}
html body#commandBody:not(.app-theme-dark).layout-command header#ccTopBar .pcb-switcher {
  border-bottom-color: rgba(255, 255, 255, 0.28);
}
html body#commandBody.layout-command header#ccTopBar .pcb-cat-btn {
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(128, 128, 128, 0.28);
  color: inherit;
}
html body#commandBody.layout-command header#ccTopBar .pcb-cat-btn:last-child {
  border-right: 0;
}
html body#commandBody.app-theme-dark.layout-command header#ccTopBar .pcb-switcher {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}
html body#commandBody.app-theme-dark.layout-command header#ccTopBar .pcb-cat-btn {
  background: transparent;
  border-right-color: rgba(255, 255, 255, 0.14);
  color: #f3f4f6;
}
html body#commandBody:not(.app-theme-dark).layout-command header#ccTopBar .pcb-cat-btn {
  background: transparent;
  border-right-color: rgba(17, 24, 39, 0.18);
  color: #111827;
}
html body#commandBody.layout-command header#ccTopBar .pcb-cat-btn.is-selected,
html body#commandBody.layout-command header#ccTopBar .pcb-cat-btn[aria-selected="true"] {
  border-color: transparent;
  background: rgba(0, 168, 84, 0.14);
  color: #065f46;
  box-shadow: inset 0 -2px 0 var(--pcb-green);
}
html body#commandBody:not(.app-theme-dark).layout-command header#ccTopBar .pcb-cat-btn.is-selected,
html body#commandBody:not(.app-theme-dark).layout-command header#ccTopBar .pcb-cat-btn[aria-selected="true"] {
  background: transparent;
  color: #111827;
  box-shadow: inset 0 -2px 0 #065f46;
}
html body#commandBody.app-theme-dark.layout-command header#ccTopBar .pcb-cat-btn.is-selected,
html body#commandBody.app-theme-dark.layout-command header#ccTopBar .pcb-cat-btn[aria-selected="true"] {
  color: #a7f3d0;
  background: rgba(0, 168, 84, 0.2);
  box-shadow: inset 0 -2px 0 #34d399;
}
html body#commandBody.layout-command header#ccTopBar .pcb-cat-btn .pcb-cat-icon {
  display: none !important;
}

/* Search | Sort — Search fills remaining width; Sort flush right */
html body#commandBody.layout-command header#ccTopBar .pcb-landing-toolbar,
html body#commandBody.layout-command header#ccTopBar .pcb-capability-slot.pcb-landing-toolbar,
html body#commandBody.layout-command header#ccTopBar #prdnaBucketCapabilitySlot {
  width: 100% !important;
  max-width: none !important;
  display: block !important;
  margin-top: 6px;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
html body#commandBody.layout-command header#ccTopBar .pcb-landing-toolbar-main {
  gap: 6px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100% !important;
  max-width: none !important;
}
html body#commandBody.layout-command header#ccTopBar .pcb-landing-search-wrap {
  width: 100%;
  min-width: 0;
}
html body#commandBody.layout-command header#ccTopBar .pcb-landing-sort-wrap {
  justify-self: end;
  flex-shrink: 0;
}
html body#commandBody.layout-command header#ccTopBar .pcb-cap-btn,
html body#commandBody.layout-command header#ccTopBar .pcb-sort-trigger,
html body#commandBody.layout-command header#ccTopBar .pcb-ai-summary-btn {
  min-height: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
html body#commandBody.app-theme-dark.layout-command header#ccTopBar .pcb-cap-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f3f4f6;
}
html body#commandBody:not(.app-theme-dark).layout-command header#ccTopBar .pcb-cap-btn,
html body#commandBody:not(.app-theme-dark).layout-command header#ccTopBar .pcb-sort-trigger,
html body#commandBody:not(.app-theme-dark).layout-command header#ccTopBar .pcb-landing-sort-wrap--title .pcb-sort-trigger {
  background: transparent !important;
  border-color: rgba(17, 24, 39, 0.22) !important;
  color: #111827 !important;
}
html body#commandBody.layout-command header#ccTopBar .pcb-landing-service-search {
  min-height: 36px;
  height: 36px;
  padding: 0 28px 0 12px;
  border-radius: 10px;
  font-size: 13px;
  background: rgba(128, 128, 128, 0.12);
  border: 1px solid rgba(128, 128, 128, 0.22);
}
html body#commandBody.app-theme-dark.layout-command header#ccTopBar .pcb-landing-service-search {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}
html body#commandBody:not(.app-theme-dark).layout-command header#ccTopBar .pcb-landing-service-search {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(17, 24, 39, 0.22);
  color: #111827;
}
html body#commandBody:not(.app-theme-dark).layout-command header#ccTopBar .pcb-landing-service-search::placeholder {
  color: rgba(17, 24, 39, 0.5);
}

/* Sticky in-scroll dark wash → true black when not hosted (service surface) */
body.app-theme-dark.layout-command #prdnaBucketLandingStickyControls.pcb-landing-sticky-controls:not([data-pcb-hosted-top="1"]),
body.app-theme-dark.layout-command #prdnaBucketStickyControls.pcb-svc-sticky-controls {
  background: #111827;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Sort menu above header */
html body#commandBody.layout-command header#ccTopBar .pcb-sort-menu {
  z-index: 80;
}

/* —— Case detail (L4) chrome: ← + service name only on solid black —— */
.pcb-l4-header {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 6px 12px 8px;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pcb-l4-header.hidden,
.pcb-l4-header[hidden] {
  display: none !important;
}
.pcb-l4-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 36px;
}
.pcb-l4-back {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--pcb-green, #00a854);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
}
.pcb-l4-service-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--pcb-green, #00a854);
  font-size: var(--pcb-l4-title-size, 22px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  display: block !important;
  visibility: visible !important;
}
@media (max-width: 767px) {
  .pcb-l4-back,
  html body#commandBody.layout-command header#ccTopBar #commandHeaderWrap[data-pcb-hosted-top="1"] .pcb-l4-back {
    font-size: 28px !important;
    letter-spacing: -0.03em;
  }
  .pcb-l4-service-title,
  html body#commandBody.layout-command header#ccTopBar #commandHeaderWrap[data-pcb-hosted-top="1"] .pcb-l4-service-title {
    /* Max size; JS fitCommandL4ServiceTitle shrinks via --pcb-l4-title-size */
    --pcb-l4-title-size: 28px;
    letter-spacing: -0.03em;
  }
}

/* L4: breadcrumbs removed from chrome (DOM host may remain for nav wiring) */
.pcb-l4-header #commandBreadcrumb,
.pcb-l4-breadcrumb,
html body#commandBody.layout-command.pcb-bucket-case-header #commandBreadcrumb,
html body#commandBody.layout-command header#ccTopBar #commandHeaderWrap #commandBreadcrumb {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

html body#commandBody.layout-command header#ccTopBar #commandHeaderWrap.pcb-l4-header,
html body#commandBody.layout-command header#ccTopBar #commandHeaderWrap[data-pcb-hosted-top="1"] {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: 1;
  margin: 0 !important;
  padding: 4px 0 6px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  width: 100%;
  pointer-events: auto;
}

html body#commandBody.layout-command.pcb-bucket-case-header header#ccTopBar #pcrChatsTitle,
html body#commandBody.layout-command.pcb-bucket-case-header header#ccTopBar #pcrChatsTopActions,
html body#commandBody.layout-command.pcb-bucket-case-header header#ccTopBar #pcrTopSearchSlot,
html body#commandBody.layout-command.pcb-bucket-case-header header#ccTopBar #ccTopBarSearchRow {
  display: none !important;
}

html body#commandBody.layout-command.cc-search-screen header#ccTopBar > #commandHeaderWrap,
html body#commandBody.layout-command.cc-search-screen header#ccTopBar > #commandHeaderWrap[data-pcb-hosted-top="1"] {
  display: flex !important;
}

/* Hosted L4 chrome lives in #ccTopBar — drop the old fixed-breadcrumb spacer */
html body#commandBody.layout-command.pcb-bucket-case-header #tab-command:not(.hidden) #commandScrollArea {
  padding-top: 0 !important;
}

/* L4 canvas behind step cards: solid black (cards keep their own navy surfaces) */
html body#commandBody.layout-command.pcb-bucket-case-header #tab-command,
html body#commandBody.layout-command.pcb-bucket-case-header #tab-command #commandScrollArea,
html body#commandBody.layout-command.pcb-bucket-case-header #commandCaseDetailPanel.pcb-workspace,
html body#commandBody.app-theme-dark.layout-command.pcb-bucket-case-header #tab-command,
html body#commandBody.app-theme-dark.layout-command.pcb-bucket-case-header #tab-command #commandScrollArea,
html body#commandBody.app-theme-dark.layout-command.pcb-bucket-case-header #commandCaseDetailPanel.pcb-workspace {
  background: #111827 !important;
  background-color: #111827 !important;
  background-image: none !important;
}

body:not(.app-theme-dark) .pcb-l4-header {
  background: #111827;
}
body:not(.app-theme-dark) .pcb-l4-back,
body:not(.app-theme-dark) .pcb-l4-service-title {
  color: #00a854;
}
body.app-theme-dark .pcb-l4-back,
body.app-theme-dark .pcb-l4-service-title {
  color: #34d399;
}

/* Single-service cases: name lives in the L4 header — don't duplicate on the card */
body.pcb-bucket-case-header #commandCaseDetailPanel .cmd-svc-surface:first-of-type:last-of-type .pcb-svc-name {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Catalogue-style chrome (pcb-hdr-17) — Bucket / Cases / [service name]
   Flat icon rows, no separators, search popout, Catalogue title typography.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Screen titles — match .cc-cat-title */
.pcb-cat-screen-title,
.pcb-svc-cases-title,
#pcbBucketTitle {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111827;
}
body.app-theme-dark .pcb-cat-screen-title,
body.app-theme-dark .pcb-svc-cases-title,
body.app-theme-dark #pcbBucketTitle,
html body#commandBody.app-theme-dark.layout-command header#ccTopBar .pcb-cat-screen-title,
html body#commandBody.app-theme-dark.layout-command header#ccTopBar .pcb-svc-cases-title,
html body#commandBody.app-theme-dark.layout-command header#ccTopBar #pcbBucketTitle,
html body#commandBody.app-theme-dark.layout-command header#ccTopBar .pcb-svc-cases-back {
  color: #ffffff !important;
}
html body#commandBody:not(.app-theme-dark).layout-command header#ccTopBar .pcb-cat-screen-title,
html body#commandBody:not(.app-theme-dark).layout-command header#ccTopBar #pcbBucketTitle {
  color: #111827 !important;
}
html body#commandBody:not(.app-theme-dark).layout-command header#ccTopBar .pcb-svc-cases-title,
html body#commandBody:not(.app-theme-dark).layout-command header#ccTopBar .pcb-svc-cases-back,
html body#commandBody:not(.app-theme-dark).layout-command header#ccTopBar .pcb-bucket-case-header .pcb-svc-icon-btn,
html body#commandBody:not(.app-theme-dark).layout-command header#ccTopBar .pcb-svc-icon-btn,
html body#commandBody:not(.app-theme-dark).layout-command header#ccTopBar .pcb-filter-select-kicker,
html body#commandBody:not(.app-theme-dark).layout-command header#ccTopBar .pcb-filter-select-value {
  color: #111827 !important;
}
html body#commandBody:not(.app-theme-dark).layout-command header#ccTopBar .pcb-cat-search-btn,
html body#commandBody:not(.app-theme-dark).layout-command header#ccTopBar .cc-order-btn {
  color: #111827 !important;
}
@media (max-width: 767px) {
  .pcb-cat-screen-title,
  .pcb-svc-cases-title,
  #pcbBucketTitle,
  html body#commandBody.layout-command header#ccTopBar .pcb-cat-screen-title,
  html body#commandBody.layout-command header#ccTopBar .pcb-svc-cases-title {
    font-size: 28px !important;
    letter-spacing: -0.03em;
  }
}

/* Search icon button — Catalogue .cc-cat-search-btn */
.pcb-cat-search-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
}
.pcb-cat-search-btn svg {
  width: 22px;
  height: 22px;
}
.pcb-cat-search-btn:hover,
.pcb-cat-search-btn[aria-expanded="true"] {
  color: #00A854;
  background: rgba(0, 168, 84, 0.08);
}
body.app-theme-dark .pcb-cat-search-btn,
html body#commandBody.layout-command header#ccTopBar .pcb-cat-search-btn {
  color: rgba(255, 255, 255, 0.72);
}
body.app-theme-dark .pcb-cat-search-btn:hover,
body.app-theme-dark .pcb-cat-search-btn[aria-expanded="true"],
html body#commandBody.layout-command header#ccTopBar .pcb-cat-search-btn:hover,
html body#commandBody.layout-command header#ccTopBar .pcb-cat-search-btn[aria-expanded="true"] {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
}

/* Landing title row */
.pcb-landing-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 2px 14px;
  min-height: 44px;
  box-sizing: border-box;
}
.pcb-landing-title-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  margin-left: auto;
}
.pcb-landing-sort-host {
  position: relative;
  flex: 0 0 auto;
}
.pcb-landing-sort-wrap--title {
  position: relative;
}
.pcb-landing-sort-wrap--title .pcb-sort-trigger {
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f3f4f6;
}
body:not(.app-theme-dark) .pcb-landing-sort-wrap--title .pcb-sort-trigger {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #111827;
}
html body#commandBody.layout-command header#ccTopBar .pcb-landing-title-row {
  padding-left: 14px;
  padding-right: 12px;
}

/* Landing search popout — hidden until .pcb-cat-search-open */
#prdnaBucketLandingStickyControls:not(.pcb-cat-search-open) .pcb-landing-search-wrap {
  display: none !important;
}
#prdnaBucketLandingStickyControls:not(.pcb-cat-search-open) .pcb-landing-toolbar-main {
  display: none !important;
}
#prdnaBucketLandingStickyControls.pcb-cat-search-open .pcb-landing-search-wrap {
  display: flex !important;
  flex: 1 1 auto;
  min-width: 0;
}
#prdnaBucketLandingStickyControls.pcb-cat-search-open .pcb-landing-toolbar-main {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 0 12px 10px;
  width: 100%;
  box-sizing: border-box;
}

/* Cases search popout */
#prdnaBucketStickyControls:not(.pcb-cat-search-open) #pcbSvcSearchPop,
#prdnaBucketStickyControls:not(.pcb-cat-search-open) .pcb-svc-search-pop {
  display: none !important;
}
#prdnaBucketStickyControls.pcb-cat-search-open #pcbSvcSearchPop,
#prdnaBucketStickyControls.pcb-cat-search-open .pcb-svc-search-pop {
  display: flex !important;
  width: 100%;
  padding: 0 12px 10px;
  box-sizing: border-box;
}
#prdnaBucketStickyControls.pcb-cat-search-open #pcbSvcSearchPop #commandSearch {
  width: 100%;
  min-height: 40px;
  border-radius: 999px !important;
}

/* Cases chrome: ← + Cases title + icons */
.pcb-svc-chrome-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 6px 10px;
}
.pcb-svc-cases-back {
  flex: 0 0 auto;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  color: #111827 !important;
  padding: 0 4px 0 0 !important;
}
@media (max-width: 767px) {
  .pcb-svc-cases-back {
    font-size: 28px !important;
  }
}
.pcb-svc-chrome-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  margin-left: auto;
}

/* Category segments — Catalogue underline tabs, no vertical cell rules */
.pcb-switcher,
html body#commandBody.layout-command header#ccTopBar .pcb-switcher {
  display: flex !important;
  gap: 0;
  border-bottom: 0 !important;
  padding: 4px 12px 10px !important;
  overflow-x: auto;
}
.pcb-cat-btn,
html body#commandBody.layout-command header#ccTopBar .pcb-cat-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: auto !important;
  padding: 8px 10px !important;
  border: 0 !important;
  border-right: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #6b7280 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
body.app-theme-dark .pcb-cat-btn,
html body#commandBody.app-theme-dark.layout-command header#ccTopBar .pcb-cat-btn {
  color: rgba(255, 255, 255, 0.55) !important;
}
.pcb-cat-btn.is-selected,
.pcb-cat-btn[aria-selected="true"],
html body#commandBody.layout-command header#ccTopBar .pcb-cat-btn.is-selected,
html body#commandBody.layout-command header#ccTopBar .pcb-cat-btn[aria-selected="true"] {
  color: #00A854 !important;
  border-bottom-color: #00A854 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.app-theme-dark .pcb-cat-btn.is-selected,
body.app-theme-dark .pcb-cat-btn[aria-selected="true"],
html body#commandBody.app-theme-dark.layout-command header#ccTopBar .pcb-cat-btn.is-selected,
html body#commandBody.app-theme-dark.layout-command header#ccTopBar .pcb-cat-btn[aria-selected="true"] {
  color: #34d399 !important;
  border-bottom-color: #34d399 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Filter row — no vertical separators */
.pcb-svc-row3,
.pcb-filter-selects,
.pcb-svc-filter-cells {
  border-bottom: 0 !important;
}
.pcb-svc-filter-cells .pcb-filter-select {
  border-right: 0 !important;
}
.pcb-svc-filter-cells .pcb-filter-select.is-active,
.pcb-svc-filter-cells .pcb-filter-select[aria-expanded="true"] {
  box-shadow: inset 0 -2px 0 var(--pcb-green);
  background: transparent !important;
}

/* Service cards — same bubble chrome as AI Bucket Summary */
.pcb-service-grid {
  gap: 12px !important;
  padding: 12px 16px 20px;
}
.pcb-svc-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  position: relative;
  min-height: 112px;
  margin: 0;
  padding: 16px 16px 14px !important;
  border: 1px solid rgba(16, 185, 129, 0.22) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #ecfdf5 100%) !important;
  box-shadow: var(--pcb-shadow) !important;
  width: 100%;
}
.pcb-svc-card-body {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
}
.pcb-svc-card:hover {
  border-color: rgba(0, 168, 84, 0.45) !important;
  box-shadow: 0 8px 22px rgba(0, 168, 84, 0.12) !important;
  background:
    linear-gradient(165deg, #ffffff 0%, #f0fdf4 55%, #ecfdf5 100%) !important;
}
body.app-theme-dark .pcb-svc-card {
  background: linear-gradient(165deg, #1f2937 0%, #111827 100%) !important;
  border-color: rgba(16, 185, 129, 0.28) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28) !important;
}
body.app-theme-dark .pcb-svc-card:hover {
  border-color: rgba(52, 211, 153, 0.45) !important;
  background: linear-gradient(165deg, #243044 0%, #111827 100%) !important;
}
.pcb-svc-card-top {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  z-index: 1;
}
.pcb-svc-card-icon {
  width: 72px !important;
  height: 72px !important;
  min-width: 72px;
  border-radius: 14px !important;
  font-size: 2rem !important;
  flex-shrink: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ecfdf5, #d1fae5) !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
  align-self: flex-start;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
}
.pcb-svc-card-icon--photo {
  background: #f3f4f6 !important;
  border-color: #e5e7eb !important;
}
.pcb-svc-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
body.app-theme-dark .pcb-svc-card-icon,
body.app-theme-dark .pcb-ai-summary-preview .pcb-svc-card-icon {
  background: linear-gradient(145deg, #ecfdf5, #d1fae5) !important;
}
body.app-theme-dark .pcb-svc-card-icon--photo {
  background: #1f2937 !important;
  border-color: #374151 !important;
}
.pcb-svc-card-name {
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.3;
  margin: 0 0 6px;
  padding-right: 88px;
}
.pcb-svc-card-sub {
  font-size: 13px !important;
  color: #6b7280 !important;
  margin-bottom: 6px;
}
body.app-theme-dark .pcb-svc-card-sub {
  color: rgba(255, 255, 255, 0.55) !important;
}
.pcb-svc-card-go {
  position: static !important;
  display: block;
  margin-top: 6px;
  font-size: 13px !important;
  font-weight: 600;
  color: #00A854 !important;
}
body.app-theme-dark .pcb-svc-card-go {
  color: #34d399 !important;
}

/* Landing service list keeps the same bubble as the AI summary card */
#prdnaBucketServiceGrid.pcb-service-grid > .pcb-svc-card,
.pcb-service-grid > .pcb-svc-card {
  border-radius: 16px !important;
}

/* AI summary — restore card bubble (not flat) */
.pcb-ai-summary-canvas {
  position: relative;
  width: auto;
  margin: 12px 16px 0 !important;
  padding: 0;
  border-radius: 16px !important;
  border: 1px solid rgba(16, 185, 129, 0.28) !important;
  background:
    linear-gradient(165deg, #1f2937 0%, #111827 100%) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28) !important;
  overflow: hidden;
  color: inherit;
}
body:not(.app-theme-dark) .pcb-ai-summary-canvas {
  background:
    linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #ecfdf5 100%) !important;
  border-color: rgba(16, 185, 129, 0.22) !important;
  box-shadow: var(--pcb-shadow) !important;
}
.pcb-ai-summary-preview {
  display: block;
  position: relative;
  width: 100%;
  min-height: 120px;
  margin: 0;
  padding: 16px 18px 18px !important;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  text-align: left;
  color: inherit;
}
.pcb-ai-summary-preview .pcb-svc-card-top {
  position: static;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.pcb-ai-summary-preview .pcb-svc-card-icon {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  border-radius: 12px !important;
  font-size: 16px !important;
}
.pcb-ai-summary-preview .pcb-svc-card-name {
  font-size: 18px !important;
  font-weight: 800 !important;
  width: auto;
  padding-right: 0;
  margin-top: 2px;
}
.pcb-ai-summary-preview .pcb-svc-card-go {
  position: absolute !important;
  right: 14px;
  bottom: 16px;
  margin-top: 0;
  font-size: 22px !important;
  color: #34d399 !important;
}
body:not(.app-theme-dark) .pcb-ai-summary-preview .pcb-svc-card-go {
  color: #047857 !important;
}
.pcb-ai-summary-drawer {
  border-top: 1px solid rgba(16, 185, 129, 0.22) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-radius: 0;
  padding: 12px 14px 14px;
}

/* Case cards — same rounded stack as Account Info Bucket */
.pcb-case-card.tracker-case-card,
.pcb-root .tracker-case-card,
body.app-theme-dark .pcb-case-card.tracker-case-card {
  border: 0 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
  padding: 10px 12px !important;
}
.pcb-case-card.has-action-bar,
.pcb-root .tracker-case-card.has-action-bar,
body.app-theme-dark .pcb-case-card.has-action-bar {
  border-radius: 12px 12px 0 0 !important;
}
body.app-theme-dark .pcb-case-card.tracker-case-card,
body.app-theme-dark .pcb-root .tracker-case-card {
  background: #1f2937 !important;
}
.pcb-root .tracker-case-card:hover,
body.app-theme-dark .pcb-case-card.tracker-case-card:hover {
  box-shadow: none !important;
}
#prdnaBucketCaseList,
.pcb-case-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px 24px;
}
.pcb-case-layout {
  padding: 0 !important;
  gap: 10px;
}
.pcb-root .tracker-case-icon {
  width: 56px !important;
  height: 56px !important;
  border-radius: 14px !important;
  font-size: 18px !important;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
}
.pcb-root .tracker-case-icon--photo {
  border-radius: 50% !important;
  background: #e5e7eb !important;
  border: none !important;
  color: transparent;
}
.pcb-root .tracker-case-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pcb-root .tracker-case-name,
.pcb-root .tracker-case-holder {
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #111827;
}
body.app-theme-dark .pcb-root .tracker-case-name,
body.app-theme-dark .pcb-root .tracker-case-holder {
  color: #f8fafc !important;
}
.pcb-root .tracker-case-meta {
  font-size: 13px !important;
}

/* Uniform card fill — status lives in the 2x2 table, not a tinted row */
body.app-theme-dark .pcb-case-card.case-stage-surface--not-started,
body.app-theme-dark .pcb-case-card.case-stage-surface--ready-to-start,
body.app-theme-dark .pcb-case-card.case-stage-surface--waiting-on-client,
body.app-theme-dark .pcb-case-card.case-stage-surface--intake-complete,
body.app-theme-dark .pcb-case-card.case-stage-surface--document-prep-complete,
body.app-theme-dark .pcb-case-card.case-stage-surface--ready-for-final-review,
body.app-theme-dark .pcb-case-card.case-stage-surface--ready-to-submit,
body.app-theme-dark .pcb-case-card.case-stage-surface--submitted,
body.app-theme-dark .pcb-case-card.case-stage-surface--in-review,
body.app-theme-dark .pcb-case-card.case-stage-surface--gc-key,
body.app-theme-dark .pcb-case-card.case-stage-surface--approved,
body.app-theme-dark .pcb-case-card.case-stage-surface--refused,
body.app-theme-dark .pcb-case-card.case-stage-surface--withdrawn,
body.app-theme-dark .pcb-case-card.case-stage-surface--completed {
  background: #1f2937 !important;
  border-color: transparent !important;
}
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--not-started,
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--ready-to-start,
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--waiting-on-client,
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--intake-complete,
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--document-prep-complete,
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--ready-for-final-review,
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--ready-to-submit,
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--submitted,
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--in-review,
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--gc-key,
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--approved,
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--refused,
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--withdrawn,
body:not(.app-theme-dark) .pcb-case-card.case-stage-surface--completed {
  background: #ffffff !important;
  border-color: transparent !important;
}

/* L4 [service name] — black on light fade; white in dark */
.pcb-l4-service-title,
html body#commandBody.layout-command header#ccTopBar #commandHeaderWrap[data-pcb-hosted-top="1"] .pcb-l4-service-title,
body:not(.app-theme-dark) .pcb-l4-service-title {
  color: #111827 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
body.app-theme-dark .pcb-l4-service-title,
html body#commandBody.app-theme-dark.layout-command header#ccTopBar #commandHeaderWrap[data-pcb-hosted-top="1"] .pcb-l4-service-title {
  color: #ffffff !important;
}
@media (max-width: 767px) {
  .pcb-l4-service-title,
  html body#commandBody.layout-command header#ccTopBar #commandHeaderWrap[data-pcb-hosted-top="1"] .pcb-l4-service-title {
    font-size: 28px !important;
    letter-spacing: -0.03em;
  }
}
.pcb-l4-back,
body:not(.app-theme-dark) .pcb-l4-back,
html body#commandBody.layout-command header#ccTopBar #commandHeaderWrap[data-pcb-hosted-top="1"] .pcb-l4-back {
  color: #111827 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
}
body.app-theme-dark .pcb-l4-back,
html body#commandBody.app-theme-dark.layout-command header#ccTopBar #commandHeaderWrap[data-pcb-hosted-top="1"] .pcb-l4-back {
  color: #ffffff !important;
}
@media (max-width: 767px) {
  .pcb-l4-back,
  html body#commandBody.layout-command header#ccTopBar #commandHeaderWrap[data-pcb-hosted-top="1"] .pcb-l4-back {
    font-size: 28px !important;
  }
}

/* Case workflow only — Pardna canvases + glossy wrap-bar headers */
#commandCaseDetailPanel.pcb-workspace .pcb-canvas,
#commandCaseDetailPanel.pcb-workspace .pcb-client-details-card,
#commandCaseDetailPanel.pcb-workspace .cmd-svc-surface,
body.app-theme-dark #commandCaseDetailPanel.pcb-workspace .pcb-canvas,
body.app-theme-dark #commandCaseDetailPanel.pcb-workspace .pcb-client-details-card,
body.app-theme-dark #commandCaseDetailPanel.pcb-workspace .cmd-svc-surface,
body.app-theme-dark #commandCaseDetailPanel.pcb-workspace #commandCaseDetailContent .cmd-svc-surface {
  background: #1f2937 !important;
  border: 1px solid #374151 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
  overflow: hidden !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Glossy wrap bar — matches Pardna account section headers (#111827) */
#commandCaseDetailPanel.pcb-workspace .pcb-canvas > summary {
  background: linear-gradient(180deg, #374151 0%, #1f2937 48%, #111827 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
}
#commandCaseDetailPanel.pcb-workspace .pcb-canvas-body {
  border-top: 0;
}

#commandCaseDetailPanel.pcb-workspace .pcb-client-details-card,
#commandCaseDetailPanel.pcb-workspace .cmd-svc-surface {
  padding: 0 12px 12px !important;
}
#commandCaseDetailPanel.pcb-workspace .pcb-client-details-kicker,
#commandCaseDetailPanel.pcb-workspace .cmd-svc-surface > .pcb-svc-name {
  display: block;
  margin: 0 -12px 12px;
  padding: 14px 16px 14px 48px;
  background: linear-gradient(180deg, #374151 0%, #1f2937 48%, #111827 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f9fafb !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}
#commandCaseDetailPanel.pcb-workspace .cmd-svc-surface > .pcb-canvas-num-badge--owned ~ .pcb-svc-name,
#commandCaseDetailPanel.pcb-workspace .cmd-svc-surface > .pcb-canvas-num-badge--static ~ .pcb-svc-name,
#commandCaseDetailPanel.pcb-workspace .pcb-client-details-card > .pcb-canvas-num-badge--owned ~ .pcb-client-details-kicker,
#commandCaseDetailPanel.pcb-workspace .pcb-client-details-card > .pcb-canvas-num-badge--static ~ .pcb-client-details-kicker {
  padding-left: 48px;
}
#commandCaseDetailPanel.pcb-workspace .cmd-svc-surface > .pcb-svc-admin {
  top: 10px;
  right: 10px;
}

/* Service card (#2) uses the chrome width; portal matches the Open button. */
#commandCaseDetailPanel.pcb-workspace [data-section="service-summary"] .pcb-canvas-body,
#commandCaseDetailPanel.pcb-workspace [data-section="service-summary"] .pcb-canvas-body--static {
  padding-left: 0;
  padding-right: 0;
}
#commandCaseDetailPanel.pcb-workspace .cmd-svc-surface > .pcb-portal-block,
#commandCaseDetailPanel.pcb-workspace .cmd-svc-surface > .pcb-svc-portal-actions {
  display: block;
  width: auto;
  max-width: none;
  box-sizing: border-box;
  margin-left: -12px;
  margin-right: -12px;
}
#commandCaseDetailPanel.pcb-workspace .cmd-svc-surface > .pcb-svc-portal-actions {
  padding-left: 0;
  padding-right: 0;
}

/* Nested portal keeps its own canvas; give kicker the same wrap bar */
#commandCaseDetailPanel.pcb-workspace .pcb-portal-block {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 !important;
  overflow: hidden;
  background: rgba(17, 24, 39, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 12px !important;
}
#commandCaseDetailPanel.pcb-workspace .pcb-portal-kicker {
  margin: 0 0 8px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #374151 0%, #1f2937 48%, #111827 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f9fafb !important;
  font-size: 11px;
  letter-spacing: 0.06em;
}
#commandCaseDetailPanel.pcb-workspace .pcb-portal-block > .pcb-portal-copy,
#commandCaseDetailPanel.pcb-workspace .pcb-portal-block > .pcb-portal-vip,
#commandCaseDetailPanel.pcb-workspace .pcb-portal-block > .pcb-portal-badges {
  margin-left: 12px;
  margin-right: 12px;
}
#commandCaseDetailPanel.pcb-workspace .pcb-portal-block > .pcb-portal-badges,
#commandCaseDetailPanel.pcb-workspace .pcb-portal-block > .pcb-portal-copy:last-child,
#commandCaseDetailPanel.pcb-workspace .pcb-portal-block > .pcb-portal-vip:last-child {
  margin-bottom: 12px;
}

/* Guidelines — same canvas chrome, slightly lighter fill */
#commandCaseDetailPanel.pcb-workspace .pcb-wf-guide-panel,
#commandCaseDetailPanel.pcb-workspace .pcb-canvas-shell--static > .pcb-wf-guide-panel,
body.app-theme-dark #commandCaseDetailPanel.pcb-workspace .pcb-wf-guide-panel {
  background: #374151 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
#commandCaseDetailPanel.pcb-workspace .pcb-wf-guide-inline-toggle,
#commandCaseDetailPanel.pcb-workspace .pcb-wf-guide-head,
#commandCaseDetailPanel.pcb-workspace .pcb-wf-guide-head--desktop {
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 48%, #5b21b6 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(196, 181, 253, 0.28);
  padding: 12px 14px !important;
  margin: 0 !important;
}
#commandCaseDetailPanel.pcb-workspace .pcb-wf-guide-inline-toggle .pcb-wf-guide-title,
#commandCaseDetailPanel.pcb-workspace .pcb-wf-guide-head .pcb-wf-guide-title {
  color: #f9fafb !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
#commandCaseDetailPanel.pcb-workspace .pcb-wf-guide-body {
  padding: 12px 14px !important;
}
@media (min-width: 768px) {
  #commandCaseDetailPanel.pcb-workspace .pcb-canvas-shell > .pcb-wf-guide-panel,
  #commandCaseDetailPanel.pcb-workspace .pcb-canvas-shell--static > .pcb-wf-guide-panel {
    border-left: 1px solid rgba(255, 255, 255, 0.14) !important;
    background: #374151 !important;
    padding: 0 !important;
  }
}

/* Notes expander stays a step canvas (same as other collapsible steps) */
#commandCaseDetailPanel.pcb-workspace [data-section="notes"] .pcb-canvas {
  background: #1f2937 !important;
  border: 1px solid #374151 !important;
}

/* ── Business compact case card + 6-tab Bucket (presentation only) ── */
.pcb-compact-case {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--pcb-border);
  background: var(--pcb-surface);
  border-radius: 16px;
  padding: 12px;
  margin: 0 0 8px;
  color: inherit;
  cursor: pointer;
  border-left-width: 4px;
  border-left-color: #94a3b8;
}
.pcb-compact-case .pcb-compact-cover,
.pcb-compact-case .tracker-case-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 48px;
  background: #f3f4f6;
  color: var(--pcb-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.pcb-compact-case .pcb-compact-cover img,
.pcb-compact-case .tracker-case-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pcb-compact-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pcb-compact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pcb-compact-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--pcb-text);
  line-height: 1.35;
}
.pcb-compact-owner {
  font-size: 14px;
  font-weight: 600;
  color: var(--pcb-text);
  line-height: 1.4;
}
.pcb-compact-ref,
.pcb-compact-scan {
  font-size: 12px;
  color: var(--pcb-muted);
  line-height: 1.45;
}
.pcb-compact-pill {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #dcfce7;
  color: #166534;
  border-radius: 999px;
  padding: 2px 8px;
}
.pcb-compact-chev {
  color: #d1d5db;
  font-size: 22px;
  line-height: 1;
}
.pcb-compact-case .pcb-case-story,
.pcb-compact-case .pcb-case-story-row,
.pcb-compact-case .pcb-case-action-bar,
.pcb-compact-case .acct-info-case-action-bar {
  display: none !important;
}
@media (min-width: 1024px) {
  .pcb-compact-scan { font-size: 13px; }
  .pcb-compact-title { font-size: 16px; }
  .pcb-compact-case { padding: 14px 16px; }
}

.pcb-biz-bucket {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}
.pcb-biz-head {
  padding: 8px 0 4px;
  border-left-width: 4px;
  border-left-style: solid;
  border-left-color: #94a3b8;
  padding-left: 12px;
  margin: 0 0 8px;
}
.pcb-biz-back {
  border: 0;
  background: transparent;
  color: var(--pcb-green);
  font-weight: 700;
  font-size: 14px;
  padding: 0 0 8px;
  cursor: pointer;
}
.pcb-biz-head-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pcb-biz-head-copy { min-width: 0; flex: 1; }
.pcb-biz-head-title { font-size: 18px; font-weight: 800; line-height: 1.3; }
.pcb-biz-head-owner { font-size: 14px; font-weight: 600; }
.pcb-biz-head-ref { font-size: 12px; color: var(--pcb-muted); }
.pcb-biz-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--pcb-border);
  margin: 0 0 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 6;
  background: var(--pcb-wash);
}
.pcb-biz-tabs::-webkit-scrollbar { display: none; }
.pcb-biz-tab {
  flex: 1 0 auto;
  border: 0;
  background: transparent;
  color: var(--pcb-muted);
  font-size: 11px;
  padding: 10px 8px;
  cursor: pointer;
  white-space: nowrap;
}
.pcb-biz-tab.is-on {
  color: var(--pcb-green);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--pcb-green);
}
.pcb-biz-bucket [data-section].pcb-biz-tab-hidden {
  display: none !important;
  pointer-events: none !important;
}
.pcb-biz-bucket:not([data-pcb-biz-active-tab="intake"]) #panel-intake {
  pointer-events: none !important;
}
.pcb-biz-bucket[data-pcb-biz-active-tab]:not([data-pcb-biz-active-tab="processing"]) .pcb-cw-step-num {
  display: none;
}
.pcb-biz-group {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pcb-muted);
  margin: 14px 0 6px;
}
.pcb-biz-retry {
  border: 1px solid var(--pcb-border);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 8px 0;
}
.pcb-biz-retry-btn {
  border: 0;
  border-radius: 12px;
  background: var(--pcb-green);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px;
  cursor: pointer;
}
.pcb-compact-chat .pcb-compact-case { margin: 0; }
#chatMessageList .pcb-compact-chat .pcb-compact-title,
#chatMessages .pcb-compact-chat .pcb-compact-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.011em;
}
#chatMessageList .pcb-compact-chat .pcb-compact-owner,
#chatMessages .pcb-compact-chat .pcb-compact-owner {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
#chatMessageList .pcb-compact-chat .pcb-compact-ref,
#chatMessageList .pcb-compact-chat .pcb-compact-scan,
#chatMessages .pcb-compact-chat .pcb-compact-ref,
#chatMessages .pcb-compact-chat .pcb-compact-scan {
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  word-break: break-word;
}
#acctInfoOverviewServicesHost .pcb-compact-case,
#acctInfoCustomerBucketHost .pcb-compact-case,
#prdnaBucketCaseList .pcb-compact-case {
  margin-bottom: 8px;
}
.acct-ov-view-all {
  border: 0;
  background: transparent;
  color: var(--pcb-green);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.acct-ov-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

body.app-theme-dark .pcb-compact-case,
body.app-theme-dark .pcb-biz-retry {
  background: #1f2937;
  border-color: #374151;
  color: #f8fafc;
}
body.app-theme-dark .pcb-compact-title,
body.app-theme-dark .pcb-compact-owner,
body.app-theme-dark .pcb-biz-head-title,
body.app-theme-dark .pcb-biz-head-owner { color: #f8fafc; }
body.app-theme-dark .pcb-biz-tabs { background: #111827; border-bottom-color: #374151; }
body.app-theme-dark .pcb-compact-case .pcb-compact-cover,
body.app-theme-dark .pcb-compact-case .tracker-case-icon { background: #374151; }

@media (max-width: 430px) {
  .pcb-biz-tab { font-size: 10px; padding: 10px 6px; }
  .pcb-compact-title { font-size: 15px; }
}

/* UI-match: one header, no leftover L4 chrome, compact step rows */
.pcb-biz-head-row { position: relative; }
.pcb-biz-more { position: relative; flex: 0 0 auto; margin-left: 4px; }
.pcb-biz-more-btn {
  border: 0;
  background: transparent;
  color: var(--pcb-muted);
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 10px;
}
.pcb-biz-more-btn:hover { background: rgba(15, 118, 110, 0.08); color: var(--pcb-text); }
.pcb-biz-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 220px;
  background: var(--pcb-surface, #fff);
  border: 1px solid var(--pcb-border);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
  padding: 6px;
  z-index: 20;
}
.pcb-biz-more-item {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pcb-text);
  cursor: pointer;
}
.pcb-biz-more-item:hover { background: #f3f4f6; }
.pcb-biz-guide-sheet {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--pcb-border);
  border-radius: 12px;
  background: var(--pcb-surface, #fff);
}
.pcb-biz-guide-block + .pcb-biz-guide-block { margin-top: 12px; }
.pcb-biz-guide-block-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  color: var(--pcb-muted);
  margin-bottom: 6px;
}
.pcb-biz-guide-empty { margin: 0; font-size: 13px; color: var(--pcb-muted); }

.pcb-biz-next {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.pcb-biz-next[hidden] { display: none !important; }
.pcb-biz-next-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pcb-muted);
}
.pcb-biz-next-acts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pcb-biz-next-btn {
  min-height: 40px;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
  border: 0;
  background: #059669;
  color: #fff;
  cursor: pointer;
  width: 100%;
}
.pcb-biz-next-btn--ghost {
  background: #fff;
  color: #059669;
  border: 1px solid #059669;
}
.pcb-biz-board { margin: 0 0 12px; }
.pcb-biz-blockers:empty { display: none; }
.pcb-biz-blockers { display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; }
.pcb-biz-board-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.pcb-biz-card {
  background: var(--pcb-surface, #fff);
  border: 1px solid var(--pcb-border);
  border-radius: 16px;
  padding: 14px 16px;
  min-width: 0;
}
.pcb-biz-card-h {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--pcb-text);
}
.pcb-biz-fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 5px 0;
  font-size: 13px;
}
.pcb-biz-fact-lab { color: var(--pcb-muted); flex: 0 1 auto; }
.pcb-biz-fact-val { font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.pcb-biz-fact-val--apl { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pcb-biz-status-slot { min-width: 0; }
.pcb-biz-status-slot + .pcb-biz-status-slot { margin-top: 2px; }
.pcb-biz-card[data-pcb-biz-card="status"] .pcb-biz-status-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 5px 0;
}
.pcb-biz-card[data-pcb-biz-card="status"] .pcb-biz-status-row .pcb-case-control-label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--pcb-muted);
}
.pcb-biz-card[data-pcb-biz-card="status"] .pcb-biz-status-row .pcb-case-control-value,
.pcb-biz-card[data-pcb-biz-card="status"] .pcb-biz-status-row .pcb-case-control-select,
.pcb-biz-card[data-pcb-biz-card="status"] .pcb-biz-status-row #commandCaseLifecycleSelect,
.pcb-biz-card[data-pcb-biz-card="status"] .pcb-biz-status-row .pcb-case-control-readonly {
  width: 100%;
  min-height: 36px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pcb-text);
  border-radius: 10px;
  border: 1px solid var(--pcb-border);
  background: var(--pcb-surface, #fff);
  box-sizing: border-box;
}
.pcb-biz-card[data-pcb-biz-card="status"] .pcb-biz-status-row .pcb-case-control-readonly {
  padding: 8px 10px;
}
.pcb-biz-status-slot:has([data-pcb-control]) > .pcb-biz-fact,
.pcb-biz-head .status-pill,
.pcb-biz-head .pcb-compact-pill {
  display: none !important;
}
.pcb-biz-copy {
  border: 1px solid var(--pcb-border);
  background: #fff;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  cursor: pointer;
}
.pcb-biz-next-hint { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.pcb-biz-pay-amt { margin: 0; font-size: 20px; font-weight: 800; }
.pcb-biz-docs-line { margin: 0 0 10px; font-size: 13px; color: var(--pcb-muted); }
.pcb-biz-team-empty { margin: 0; font-size: 13px; color: var(--pcb-muted); }
.pcb-biz-team-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.pcb-biz-team-av {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
}
.pcb-biz-team-copy { display: flex; flex-direction: column; min-width: 0; }
.pcb-biz-team-copy strong { font-size: 13px; }
.pcb-biz-team-copy span { font-size: 11px; color: var(--pcb-muted); }
.pcb-biz-team-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.pcb-biz-team-acts .pcb-biz-next-btn { width: auto; min-width: 120px; flex: 1 1 120px; }
.pcb-biz-bucket .pcb-card-blocker {
  position: static;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
  box-shadow: none;
}

.pcb-biz-bucket #commandPcbWorkspaceTabs,
.pcb-biz-bucket .pcb-workspace-tabs,
.pcb-biz-bucket .cmd-case-workflow-tabs,
.pcb-biz-bucket .pcb-wf-tracker-wrap,
.pcb-biz-bucket .pcb-wf-tracker,
.pcb-biz-bucket .pcb-portal-block,
.pcb-biz-bucket .pcb-wf-guide-panel,
.pcb-biz-bucket .pcb-biz-group,
.pcb-biz-bucket [data-section="service-summary"] .pcb-svc-name,
.pcb-biz-bucket [data-section="service-summary"] .pcb-svc-divider,
.pcb-biz-bucket [data-section="service-summary"] {
  display: none !important;
}

#commandCaseDetailPanel:has(.pcb-biz-bucket) #commandPcbWorkspaceTabs,
#commandCaseDetailPanel:has(.pcb-biz-bucket) .pcb-workspace-tabs,
#commandCaseDetailPanel:has(.pcb-biz-bucket) .cmd-case-workflow-tabs,
#commandCaseDetailContent:has(.pcb-biz-bucket) #commandPcbWorkspaceTabs,
#commandCaseDetailContent:has(.pcb-biz-bucket) .pcb-workspace-tabs,
#acctBusinessWorkspace:has(.pcb-biz-bucket) #commandPcbWorkspaceTabs,
#acctBusinessWorkspace:has(.pcb-biz-bucket) .pcb-workspace-tabs,
html body#commandBody #commandCaseDetailPanel.pcb-workspace:has(.pcb-biz-bucket) #commandPcbWorkspaceTabs.pcb-workspace-tabs,
html body#commandBody #tab-command #commandCaseDetailPanel.pcb-workspace .pcb-biz-bucket .pcb-wf-tracker-wrap,
html body#commandBody #tab-command #commandCaseDetailPanel.pcb-workspace .pcb-biz-bucket .pcb-wf-tracker,
html body#commandBody #tab-command #commandCaseDetailPanel.pcb-workspace .pcb-biz-bucket .pcb-portal-block,
html body#commandBody #tab-command #commandCaseDetailPanel.pcb-workspace .pcb-biz-bucket .pcb-wf-guide-panel,
html body#commandBody #commandCaseDetailPanel.pcb-workspace .pcb-biz-bucket .pcb-wf-tracker-wrap,
html body#commandBody #commandCaseDetailPanel.pcb-workspace .pcb-biz-bucket .pcb-wf-tracker,
html body#commandBody #commandCaseDetailPanel.pcb-workspace .pcb-biz-bucket .pcb-portal-block,
html body#commandBody #commandCaseDetailPanel.pcb-workspace .pcb-biz-bucket .pcb-wf-guide-panel,
#acctBusinessWorkspace .pcb-biz-bucket .pcb-wf-tracker-wrap,
#acctBusinessWorkspace .pcb-biz-bucket .pcb-wf-tracker,
#acctBusinessWorkspace .pcb-biz-bucket .pcb-portal-block,
#acctBusinessWorkspace .pcb-biz-bucket .pcb-wf-guide-panel,
#acctBusinessWorkspace.pcb-biz-bucket .pcb-wf-tracker-wrap,
#acctBusinessWorkspace.pcb-biz-bucket .pcb-portal-block,
#acctBusinessWorkspace.pcb-biz-bucket .pcb-wf-guide-panel {
  display: none !important;
}

html body:has(.pcb-biz-bucket) #pcbPresentationPopup,
html body:has(.pcb-biz-bucket) .pcb-presentation-popup,
html body:has(#commandCaseDetailContent .pcb-biz-bucket) #pcbPresentationPopup,
html body:has(.pcb-biz-bucket) #pcbGuidelinesPopup,
html body:has(.pcb-biz-bucket) #commandCaseWorkflowToolModal,
html body:has(.pcb-biz-bucket) #commandPortalOverlay,
html body:has(.pcb-biz-bucket) #portalPickModal,
html body:has(.pcb-biz-bucket) #prdnaFormLinkDrawer,
html body:has(.pcb-biz-bucket) #pcbPayAmountOverlay,
.pcb-biz-bucket [data-section="primary-actions"],
.pcb-biz-bucket .pcb-client-expanders,
.pcb-biz-bucket[data-pcb-biz-active-tab="overview"] .pcb-native-select-host {
  display: none !important;
}

.pcb-biz-bucket[data-pcb-biz-active-tab="overview"] [data-section="case-header"] .pcb-client-details-kicker,
.pcb-biz-bucket[data-pcb-biz-active-tab="overview"] [data-section="case-header"] .pcb-case-identity,
.pcb-biz-bucket[data-pcb-biz-active-tab="overview"] [data-section="case-header"] .pcb-case-controls,
.pcb-biz-bucket[data-pcb-biz-active-tab="overview"] [data-section="case-header"] .pcb-case-divider,
.pcb-biz-bucket[data-pcb-biz-active-tab="overview"] [data-section="case-header"] .pcb-native-select-host,
.pcb-biz-bucket[data-pcb-biz-active-tab="overview"] [data-section="case-header"] .pcb-client-expanders,
.pcb-biz-bucket[data-pcb-biz-active-tab="overview"] [data-section="case-header"] .pcb-canvas-num-badge,
.pcb-biz-bucket[data-pcb-biz-active-tab="overview"] [data-section="case-header"] .pcb-step-num-jug,
.pcb-biz-bucket[data-pcb-biz-active-tab="overview"] [data-section="case-header"] .pcb-canvas-chevron,
.pcb-biz-bucket[data-pcb-biz-active-tab="overview"] [data-section="case-header"] .pcb-canvas-title,
.pcb-biz-bucket[data-pcb-biz-active-tab="overview"] [data-section="case-header"] details.pcb-canvas > summary {
  display: none !important;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="overview"] [data-section="case-header"] .pcb-client-details-card {
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="overview"] [data-section="case-header"] .pcb-card-blocker,
.pcb-biz-bucket[data-pcb-biz-active-tab="overview"] [data-section="case-header"] .pcb-card-blockers {
  display: flex !important;
}

.pcb-biz-bucket[data-pcb-biz-active-tab="processing"] details.pcb-biz-step-compact,
.pcb-biz-bucket[data-pcb-biz-active-tab="processing"] .pcb-biz-step {
  background: var(--pcb-surface, #fff);
  border: 1px solid var(--pcb-border);
  border-radius: 14px;
  margin: 0 0 8px;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="processing"] .pcb-biz-step > .pcb-wf-row-main {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  padding: 10px 12px;
  width: 100%;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="processing"] .pcb-biz-step--unnumbered,
.pcb-biz-bucket[data-pcb-biz-active-tab="processing"] .pcb-wf-row.is-section-label,
.pcb-biz-bucket[data-pcb-biz-active-tab="processing"] .pcb-wf-row.is-utility,
.pcb-biz-bucket[data-pcb-biz-active-tab="processing"] [data-pcb-biz-unnumbered="1"],
.pcb-biz-bucket[data-pcb-biz-active-tab="processing"] [data-pcb-bucket-surface="section_label"] {
  display: none !important;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="processing"] details.pcb-biz-step-compact {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  margin: 0;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="processing"] details.pcb-biz-step-compact > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  list-style: none;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="processing"] details.pcb-biz-step-compact > summary::-webkit-details-marker { display: none; }
.pcb-biz-bucket[data-pcb-biz-active-tab="processing"] details.pcb-biz-step-compact > summary .pcb-canvas-chevron { display: none; }
.pcb-biz-bucket[data-pcb-biz-active-tab="processing"] .pcb-canvas-num-badge,
.pcb-biz-bucket[data-pcb-biz-active-tab="processing"] .pcb-cw-step-num,
.pcb-biz-bucket[data-pcb-biz-active-tab="processing"] .pcb-step-num-jug {
  display: inline-flex !important;
  flex: 0 0 auto;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="processing"] .pcb-canvas-summary-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="processing"] .pcb-canvas-title {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="processing"] .pcb-canvas-status {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.pcb-biz-step-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
}
.pcb-biz-step-acts .pcb-doc-act,
.pcb-biz-step-acts .pcb-card-log-work,
.pcb-biz-step-acts .pcb-portal-open-btn,
.pcb-biz-step-acts .pcb-biz-seed-act {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 10px;
  min-height: 32px;
  line-height: 1.2;
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--pcb-border);
  color: var(--pcb-text);
  cursor: pointer;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="processing"] details.pcb-biz-step-compact > .pcb-canvas-shell {
  flex: 1 1 100%;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="processing"] details.pcb-biz-step-compact:not([open]) > .pcb-canvas-shell {
  display: none;
}

.pcb-biz-bucket[data-pcb-biz-active-tab="documents"] details.pcb-canvas,
.pcb-biz-bucket[data-pcb-biz-active-tab="payments"] details.pcb-canvas,
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] details.pcb-canvas {
  border: 0;
  background: transparent;
  box-shadow: none;
  margin: 0 0 10px;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="documents"] details.pcb-canvas > summary,
.pcb-biz-bucket[data-pcb-biz-active-tab="payments"] details.pcb-canvas > summary,
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] details.pcb-canvas > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 10px;
  list-style: none;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="documents"] details.pcb-canvas > summary::-webkit-details-marker,
.pcb-biz-bucket[data-pcb-biz-active-tab="payments"] details.pcb-canvas > summary::-webkit-details-marker,
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] details.pcb-canvas > summary::-webkit-details-marker { display: none; }
.pcb-biz-bucket[data-pcb-biz-active-tab="documents"] details.pcb-canvas > summary .pcb-canvas-chevron,
.pcb-biz-bucket[data-pcb-biz-active-tab="payments"] details.pcb-canvas > summary .pcb-canvas-chevron,
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] details.pcb-canvas > summary .pcb-canvas-chevron,
.pcb-biz-bucket[data-pcb-biz-active-tab="documents"] details.pcb-canvas > summary .pcb-canvas-num-badge,
.pcb-biz-bucket[data-pcb-biz-active-tab="payments"] details.pcb-canvas > summary .pcb-canvas-num-badge,
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] details.pcb-canvas > summary .pcb-canvas-num-badge {
  display: none;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="documents"] details.pcb-canvas > .pcb-canvas-shell,
.pcb-biz-bucket[data-pcb-biz-active-tab="payments"] details.pcb-canvas > .pcb-canvas-shell,
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] details.pcb-canvas > .pcb-canvas-shell {
  display: block !important;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="documents"] .pcb-doc-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  background: var(--pcb-surface, #fff);
  border: 1px solid var(--pcb-border);
  border-radius: 12px;
  margin: 0 0 8px;
  overflow: hidden;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="documents"] .pcb-doc-preview-col,
.pcb-biz-bucket[data-pcb-biz-active-tab="documents"] .pcb-doc-preview-pane {
  display: block;
  position: relative;
  width: 56px;
  min-width: 56px;
  max-width: 56px;
  height: 56px;
  min-height: 56px;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  background: #eef3f0;
  border-right: 1px solid var(--pcb-border);
  overflow: hidden;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="documents"] .pcb-doc-preview-col.is-filled,
.pcb-biz-bucket[data-pcb-biz-active-tab="documents"] .pcb-doc-preview-pane.is-filled {
  background: #0b1220;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="documents"] .pcb-doc-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  width: 100%;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="documents"] .pcb-doc-row-meta {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="documents"] .pcb-doc-row-actions {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="documents"] .pcb-doc-row-name,
.pcb-biz-bucket[data-pcb-biz-active-tab="documents"] .pcb-doc-row-tags {
  display: block;
  writing-mode: horizontal-tb;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  word-wrap: break-word;
  letter-spacing: normal;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="documents"] .pcb-doc-row-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  overflow: visible;
  text-overflow: unset;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="documents"] .pcb-doc-row-state { display: none; }
.pcb-biz-bucket[data-pcb-biz-active-tab="documents"] .pcb-doc-action-drawer.is-collapsed,
.pcb-biz-bucket[data-pcb-biz-active-tab="documents"] .pcb-doc-action-drawer[hidden],
.pcb-biz-bucket[data-pcb-biz-active-tab="documents"] .pcb-doc-guide-panel.is-collapsed,
.pcb-biz-bucket[data-pcb-biz-active-tab="documents"] .pcb-doc-guide-toggle {
  display: none !important;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="documents"] .pcb-doc-action-drawer:not(.is-collapsed):not([hidden]) {
  display: block;
  grid-column: 1 / -1;
  padding: 0 12px 10px;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="documents"] .pcb-doc-guide-panel:not(.is-collapsed) {
  display: block;
  grid-column: 1 / -1;
  padding: 0 12px 12px;
}
.pcb-biz-bucket .pcb-biz-step--prepared details.pcb-canvas > .pcb-canvas-shell {
  display: block !important;
}
.pcb-biz-bucket .pcb-biz-step--prepared .pcb-doc-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  background: var(--pcb-surface, #fff);
  border: 1px solid var(--pcb-border);
  border-radius: 12px;
  margin: 0 0 8px;
  overflow: hidden;
}
.pcb-biz-bucket .pcb-biz-step--prepared .pcb-doc-preview-col,
.pcb-biz-bucket .pcb-biz-step--prepared .pcb-doc-preview-pane {
  display: block;
  position: relative;
  width: 56px;
  min-width: 56px;
  max-width: 56px;
  height: 56px;
  min-height: 56px;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  background: #eef3f0;
  border-right: 1px solid var(--pcb-border);
  overflow: hidden;
}
.pcb-biz-bucket .pcb-biz-step--prepared .pcb-doc-preview-col.is-filled,
.pcb-biz-bucket .pcb-biz-step--prepared .pcb-doc-preview-pane.is-filled {
  background: #0b1220;
}
.pcb-biz-bucket .pcb-biz-step--prepared .pcb-doc-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  width: 100%;
}
.pcb-biz-bucket .pcb-biz-step--prepared .pcb-doc-row-meta {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}
.pcb-biz-bucket .pcb-biz-step--prepared .pcb-doc-row-actions {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}
.pcb-biz-bucket .pcb-biz-step--prepared .pcb-doc-row-name,
.pcb-biz-bucket .pcb-biz-step--prepared .pcb-doc-row-tags {
  display: block;
  writing-mode: horizontal-tb;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  word-wrap: break-word;
  letter-spacing: normal;
}
.pcb-biz-bucket .pcb-biz-step--prepared .pcb-doc-row-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  overflow: visible;
  text-overflow: unset;
}
.pcb-biz-bucket .pcb-biz-step--prepared .pcb-doc-row-state { display: none; }
.pcb-biz-bucket .pcb-biz-step--prepared .pcb-doc-action-drawer.is-collapsed,
.pcb-biz-bucket .pcb-biz-step--prepared .pcb-doc-action-drawer[hidden],
.pcb-biz-bucket .pcb-biz-step--prepared .pcb-doc-guide-panel.is-collapsed,
.pcb-biz-bucket .pcb-biz-step--prepared .pcb-doc-guide-toggle,
.pcb-biz-bucket .pcb-biz-step--prepared .pcb-doc-guide-teaser {
  display: none !important;
}
.pcb-biz-bucket .pcb-biz-step--prepared .pcb-doc-action-drawer:not(.is-collapsed):not([hidden]) {
  display: block;
  grid-column: 1 / -1;
  padding: 0 12px 10px;
}
.pcb-biz-bucket .pcb-biz-step--prepared .pcb-doc-guide-panel:not(.is-collapsed) {
  display: block;
  grid-column: 1 / -1;
  padding: 0 12px 12px;
}
.pcb-biz-doc-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 32px;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  color: var(--pcb-muted);
}
.pcb-biz-doc-more-icon { display: none; }
.pcb-biz-doc-more-label { display: inline; }
@media (max-width: 767px) {
  .pcb-biz-doc-more {
    width: 32px;
    min-width: 32px;
    padding: 0;
    font-size: 18px;
    font-weight: 400;
  }
  .pcb-biz-doc-more-icon { display: inline; }
  .pcb-biz-doc-more-label { display: none; }
}
.pcb-biz-bucket .pcb-biz-doc-inline,
.pcb-biz-bucket .pcb-doc-row-actions > .pcb-biz-doc-btn {
  display: none !important;
}
.pcb-biz-doc-head { margin: 0 0 10px; }
.pcb-biz-doc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.pcb-biz-doc-chip {
  border: 1px solid var(--pcb-border);
  background: var(--pcb-surface, #fff);
  color: var(--pcb-text);
  border-radius: 999px;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.pcb-biz-doc-chip.is-on {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}
.pcb-biz-doc-inline { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.pcb-biz-doc-btn {
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--pcb-border);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.pcb-biz-doc-btn--upload { background: #059669; border-color: #059669; color: #fff; }
.pcb-biz-doc-btn.is-disabled,
.pcb-biz-doc-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.pcb-biz-doc-q,
.pcb-biz-doc-btn--view { display: none; }
.pcb-biz-doc-off { display: none !important; }
.pcb-biz-pay-grid { display: none; }
.pcb-biz-pay-now { margin: 0 0 10px; width: auto; min-width: 140px; }
.pcb-biz-intake-foot .pcb-biz-next-btn { width: auto; min-width: 110px; }
.pcb-biz-pay-history { margin: 12px 0; }
.pcb-biz-bucket[data-pcb-biz-active-tab="payments"] .pcb-pay-totals,
.pcb-biz-bucket[data-pcb-biz-active-tab="payments"] [data-pcb-pay-totals] {
  display: flex !important;
  flex-direction: column;
  gap: 6px;
  background: var(--pcb-surface, #fff);
  border: 1px solid var(--pcb-border);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 0 0 12px;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="payments"] .pcb-pay-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] .pcb-app-form-row {
  background: var(--pcb-surface, #fff);
  border: 1px solid var(--pcb-border);
  border-radius: 16px;
  padding: 14px 16px;
}
.pcb-biz-intake-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
}
.pcb-biz-intake-sec {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--pcb-border);
  background: var(--pcb-surface, #fff);
  border-radius: 12px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pcb-biz-intake-sec.is-on { border-color: #0f766e; box-shadow: inset 0 0 0 1px #0f766e; }
.pcb-biz-intake-num {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 auto;
}
.pcb-biz-intake-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
}
.pcb-biz-form-link-val {
  flex: 1 1 160px;
  min-height: 40px;
  border: 1px solid var(--pcb-border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  background: var(--pcb-surface, #fff);
}
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] .pcb-intake-actions,
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] .pcb-intake-extras,
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] .pcb-biz-intake-park-host,
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] .pcb-biz-intake-parked,
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] .pcb-biz-intake-foot {
  display: none !important;
}
.pcb-biz-intake-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  width: 100%;
}
.pcb-biz-intake-more {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 10px 0 0;
  width: 100%;
}
.pcb-biz-intake-bar > button {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  white-space: nowrap;
}
.pcb-biz-intake-more > button,
.pcb-biz-intake-more .pcb-biz-intake-tool,
.pcb-biz-intake-more .pcb-card-log-work,
.pcb-biz-intake-more .cmd-svc-copy-intake-form,
.pcb-biz-intake-more [data-pcb-intake-supporting-docs] {
  display: block;
  width: 100%;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  white-space: nowrap;
}
.pcb-biz-intake-tool.is-on {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}
.pcb-biz-intake-panel {
  margin-top: 8px;
  background: var(--pcb-surface, #fff);
  border: 1px solid var(--pcb-border);
  border-radius: 14px;
  padding: 14px 16px;
}
.pcb-biz-intake-panel[hidden] { display: none !important; }
.pcb-biz-intake-panel .pcb-intake-drawer-body { padding: 0; }
.pcb-biz-intake-panel .pcb-biz-form-link-val {
  width: 100%;
  margin-top: 8px;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] .pcb-intake-extra-title {
  color: var(--pcb-text, #14241c);
  font-size: 13px;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] .pcb-intake-extra-help {
  color: var(--pcb-muted, #5b6b63);
}
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] .pcb-lock-chip {
  background: #f7faf8;
  border-color: var(--pcb-border, #d5ddd8);
  color: var(--pcb-text, #14241c);
}
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] .pcb-lock-chip.is-on {
  background: #ecfdf5;
  border-color: #059669;
  color: #047857;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] .pcb-lock-chip.is-locked {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] .pcb-intake-extras > .pcb-card-log-work {
  background: #fff;
  color: #059669;
  border: 1px solid #059669;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] .pcb-intake-inline-host,
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] #panel-intake.panel-intake--inline,
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] #panel-intake.panel-intake--inline #panelIntakeContent {
  background: #fff !important;
  color: inherit;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] .cmd-svc-copy-intake-form,
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] .cmd-svc-view-forms,
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] [data-pcb-intake-supporting-docs] {
  background: #fff;
  color: #047857;
  border: 1px solid #059669;
  border-radius: 10px;
  min-height: 42px;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="intake"] #commandChangeApplicantForm {
  background: #f0fdf4;
  border-color: #86efac;
}
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace .pcb-biz-bucket[data-pcb-biz-active-tab="intake"] .pcb-intake-extra-title,
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace .pcb-biz-bucket[data-pcb-biz-active-tab="intake"] .pcb-intake-drawer-sum {
  color: #14241c !important;
}
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace .pcb-biz-bucket[data-pcb-biz-active-tab="intake"] .pcb-intake-extra-help {
  color: #5b6b63 !important;
}
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace .pcb-biz-bucket[data-pcb-biz-active-tab="intake"] input,
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace .pcb-biz-bucket[data-pcb-biz-active-tab="intake"] select,
body:not(.app-theme-dark) #commandCaseDetailPanel.pcb-workspace .pcb-biz-bucket[data-pcb-biz-active-tab="intake"] textarea,
body:not(.app-theme-dark) #tab-command #commandCaseDetailPanel.pcb-workspace .pcb-biz-bucket[data-pcb-biz-active-tab="intake"] input,
body:not(.app-theme-dark) #tab-command #commandCaseDetailPanel.pcb-workspace .pcb-biz-bucket[data-pcb-biz-active-tab="intake"] select {
  background: #f7faf8 !important;
  border-color: #d5ddd8 !important;
  color: #14241c !important;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="tools"] .pcb-tools-title { display: none; }
.pcb-biz-bucket[data-pcb-biz-active-tab="tools"] .pcb-tools-btn {
  background: var(--pcb-surface, #fff);
  border: 1px solid var(--pcb-border);
  color: var(--pcb-text);
  min-height: 64px;
  box-shadow: none;
}
.pcb-tools-copy { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.pcb-tools-hint { font-size: 11px; font-weight: 500; color: var(--pcb-muted); }

#staffPersonProfileView .pcb-case-story,
#acctPersonProfileView .pcb-case-story,
#acctPersonProfileOverlay .pcb-case-story,
#acctInfoOverviewServicesHost .pcb-case-story,
#acctInfoCustomerBucketHost .pcb-case-story,
#acctBizPanelOverview .pcb-case-story,
body:not(.app-theme-dark) #staffPersonProfileView .prdna-pp .pcb-case-story,
body:not(.app-theme-dark) #acctPersonProfileView .prdna-pp .pcb-case-story,
body:not(.app-theme-dark) #acctPersonProfileOverlay .prdna-pp .pcb-case-story,
body:not(.app-theme-dark) #acctBizPanelOverview .pcb-case-story,
body:not(.app-theme-dark) #acctInfoOverviewServicesHost .pcb-case-story,
body:not(.app-theme-dark) #acctInfoCustomerBucketHost .pcb-case-story {
  display: none !important;
}
#staffPersonProfileView .pcb-compact-case,
#acctPersonProfileView .pcb-compact-case,
#acctPersonProfileOverlay .pcb-compact-case,
#acctBizPanelOverview .pcb-compact-case {
  margin-bottom: 8px;
}

@media (min-width: 900px) {
  .pcb-biz-board-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 14px 16px;
  }
  .pcb-biz-card--team { grid-column: 1; }
  .pcb-biz-pay-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pcb-biz-bucket[data-pcb-biz-active-tab="processing"] .pcb-biz-step > .pcb-wf-row-main {
    flex-direction: column;
    flex-wrap: nowrap;
  }
}

body.app-theme-dark .pcb-biz-more-menu,
body.app-theme-dark .pcb-biz-guide-sheet,
body.app-theme-dark .pcb-biz-card,
body.app-theme-dark .pcb-biz-doc-chip,
body.app-theme-dark .pcb-biz-doc-btn,
body.app-theme-dark .pcb-biz-doc-q,
body.app-theme-dark .pcb-biz-intake-sec,
body.app-theme-dark .pcb-biz-intake-panel,
body.app-theme-dark .pcb-biz-form-link-val,
body.app-theme-dark .pcb-biz-bucket[data-pcb-biz-active-tab="documents"] .pcb-doc-card,
body.app-theme-dark .pcb-biz-bucket .pcb-biz-step--prepared .pcb-doc-card,
body.app-theme-dark .pcb-biz-bucket[data-pcb-biz-active-tab="payments"] .pcb-pay-totals,
body.app-theme-dark .pcb-biz-bucket[data-pcb-biz-active-tab="intake"] .pcb-app-form-row,
body.app-theme-dark .pcb-biz-bucket[data-pcb-biz-active-tab="tools"] .pcb-tools-btn {
  background: #1f2937;
  border-color: #374151;
  color: #f8fafc;
}
body.app-theme-dark .pcb-biz-more-item:hover { background: #374151; }
body.app-theme-dark .pcb-biz-card-h,
body.app-theme-dark .pcb-biz-fact-val,
body.app-theme-dark .pcb-biz-next-hint { color: #f8fafc; }
body.app-theme-dark .pcb-biz-next-btn--ghost { background: #1f2937; color: #6ee7b7; border-color: #059669; }
body.app-theme-dark .pcb-biz-bucket[data-pcb-biz-active-tab="processing"] details.pcb-biz-step-compact,
body.app-theme-dark .pcb-biz-bucket[data-pcb-biz-active-tab="processing"] .pcb-biz-step {
  background: #1f2937;
  border-color: #374151;
}

.pcb-staff-pay-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}
body.app-theme-dark .pcb-staff-pay-banner {
  background: #422006;
  border-color: #d97706;
  color: #fde68a;
}
.pcb-biz-bucket[data-pcb-biz-active-tab="processing"] .pcb-phase-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pcb-muted);
  margin: 0 0 6px;
}

/* Command Bucket: case-owned notes follow Case details at every width. */
.pcb-biz-card--with-notes,
.pcb-bucket-overview-notes { grid-column: 1 / -1; }
.pcb-bucket-overview-notes { display: grid; gap: 12px; min-width: 0; }
.pcb-bucket-overview-notes summary { cursor: pointer; margin: 0; }
.pcb-bucket-overview-notes details[open] > summary { margin-bottom: 12px; }
.pcb-bucket-ai-notes { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--pcb-text); font-size: 13px; }
.pcb-bucket-overview-notes [data-staff-notes-list] > div { background: var(--pcb-bg); border-color: var(--pcb-border); color: var(--pcb-text); }
.pcb-bucket-overview-notes [data-staff-notes-list] .text-gray-800,
.pcb-bucket-overview-notes [data-staff-notes-list] .text-mgDark { color: var(--pcb-text); }
.pcb-bucket-overview-notes textarea { background: var(--pcb-surface); color: var(--pcb-text); border-color: var(--pcb-border); }

/* Canonical checklist completion, shared by workflow and Bucket card projections. */
.cmd-case-workflow-step:has(> .pcb-step-completed-tag), .pcb-wf-row-main:has(.pcb-step-completed-tag) {
  position: relative;
  padding-top: 34px;
}
.pcb-step-completed-tag {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 1;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: #166534;
  background: #dcfce7;
  pointer-events: none;
}
body.app-theme-dark .pcb-step-completed-tag {
  color: #bbf7d0;
  background: #14532d;
}
@media (max-width: 767px) {
  .pcb-l4-service-title,
  html body#commandBody.layout-command header#ccTopBar #commandHeaderWrap[data-pcb-hosted-top="1"] .pcb-l4-service-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.25;
    letter-spacing: normal;
    text-overflow: ellipsis;
  }
  .pcb-l4-back,
  html body#commandBody.layout-command header#ccTopBar #commandHeaderWrap[data-pcb-hosted-top="1"] .pcb-l4-back {
    font-size: 20px !important;
  }
}

/* Out-specify the existing light-theme hosted-header wrap rule on mobile only. */
@media (max-width: 767px) {
  html body#commandBody:not(.app-theme-dark).layout-command.pcb-bucket-case-header header#ccTopBar #commandHeaderWrap.pcb-l4-header.pcb-l4-only {
    background: var(--pcb-bg, #e8efeb) !important;
  }
  html body#commandBody.layout-command.pcb-bucket-case-header header#ccTopBar #commandHeaderWrap #commandL4ServiceTitle {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  html body#commandBody:not(.app-theme-dark).layout-command.pcb-bucket-case-header header#ccTopBar #commandHeaderWrap #commandL4ServiceTitle,
  html body#commandBody:not(.app-theme-dark).layout-command.pcb-bucket-case-header header#ccTopBar #commandHeaderWrap #commandL4Back {
    color: #111827 !important;
  }
  html body#commandBody.layout-command.pcb-bucket-case-header header#ccTopBar #commandHeaderWrap #commandL4Back {
    font-size: 20px !important;
    line-height: 1.25 !important;
  }
}

/* Case Overview text must beat Command's generic descendant theme rules. */
html body#commandBody:not(.app-theme-dark) #commandCaseDetailPanel .pcb-bucket-overview-notes :is([data-staff-notes-list], [data-staff-notes-list] *, [data-bucket-note-body], summary, label, p, textarea) {
  color: var(--pcb-text) !important;
}
html body#commandBody:not(.app-theme-dark) #commandCaseDetailPanel .pcb-bucket-overview-notes textarea::placeholder {
  color: var(--pcb-text) !important;
  opacity: 1;
}
html body#commandBody:not(.app-theme-dark).layout-command.pcb-bucket-case-header header#ccTopBar,
html body#commandBody:not(.app-theme-dark).layout-command.pcb-bucket-case-header header#ccTopBar #commandHeaderWrap.pcb-l4-header.pcb-l4-only {
  background: var(--pcb-surface) !important;
}
