/* Shared table and label contract from the user's 2026-10-08 references.
   The root scope also wins over later feature CSS without changing its layout. */
#root .app-shell.product-shell.original-ui {
  --table-surface: #f7f7f8;
  --table-line: #e4e4e7;
  --table-muted: #6d6d78;
  --tag-ink: #292b30;
  --tag-neutral: #eaeaec;
  --tag-blue: #d5e7ee;
  --tag-green: #d1edd6;
  --tag-yellow: #f0ebcd;
  --tag-red: #f5ded9;
  --tag-violet: #e6e0f1;
}

/* All semantic tables, including feature tables without their own class. */
#root .app-shell.product-shell.original-ui table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 2px;
  background: var(--table-surface);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
#root .app-shell.product-shell.original-ui table thead th {
  padding: 12px 16px;
  border: 0;
  border-block: 1px solid var(--table-line);
  background: var(--table-surface);
  color: var(--table-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .055em;
  text-transform: uppercase;
  vertical-align: middle;
}
#root .app-shell.product-shell.original-ui table th button {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
#root .app-shell.product-shell.original-ui table th[aria-sort]:not([aria-sort="none"]) {
  color: var(--ink);
}
#root .app-shell.product-shell.original-ui table td {
  height: 52px;
  box-sizing: border-box;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  vertical-align: middle;
}
#root .app-shell.product-shell.original-ui table tbody th {
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: middle;
}
#root .app-shell.product-shell.original-ui table tbody tr {
  background: transparent;
  box-shadow: none;
}
#root .app-shell.product-shell.original-ui table tbody tr > td:first-child {
  border-radius: 6px 0 0 6px;
  box-shadow: none;
}
#root .app-shell.product-shell.original-ui table tbody tr > td:last-child {
  border-radius: 0 6px 6px 0;
}
#root .app-shell.product-shell.original-ui table tbody tr:is(.selected, .row-selected, .is-selected, [aria-selected="true"]),
#root .app-shell.product-shell.original-ui table tbody tr:has(input[type="checkbox"]:checked) {
  background: var(--surface);
}
#root .app-shell.product-shell.original-ui table tbody tr:is(.selected, .row-selected, .is-selected, [aria-selected="true"]) > td,
#root .app-shell.product-shell.original-ui table tbody tr:has(input[type="checkbox"]:checked) > td {
  background: var(--surface);
}
#root .app-shell.product-shell.original-ui table tbody tr:focus-within > td {
  background: var(--surface);
}
#root .app-shell.product-shell.original-ui table :is(small, time) {
  color: var(--table-muted);
}
#root .app-shell.product-shell.original-ui table :is(.table-person strong, .ldb-person-button strong, .campaign-plan-select strong, .catalog-chat-link) {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
#root .app-shell.product-shell.original-ui table :is(.table-person > .avatar, .ldb-person-button > .avatar, .catalog-avatar) {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
}
/* Accounts contain contact facts and disclosures; let those rows stay taller. */
#root .app-shell.product-shell.original-ui .account-workbench-table td { height: 88px; }
#root .app-shell.product-shell.original-ui :is(.import-preview-table, .ldb-preview-table .ldb-table) td { height: auto; }

#root .app-shell.product-shell.original-ui :is(.table-scroll, .lead-table-wrap, .ldb-table-wrap, .campaign-table-scroll, .catalog-table-wrap, .lzt-table-wrap, .proxy-table-scroll, .pa-table-scroll, .journal-table-scroll, .management-table, .billing-table-wrap) {
  min-width: 0;
  max-width: 100%;
  border: 0;
  border-radius: 0;
  background: var(--table-surface);
  box-shadow: none;
}
#root .app-shell.product-shell.original-ui :is(.campaign-table-scroll, .proxy-table-scroll, .pa-table-scroll, .journal-table-scroll, .management-table, .billing-table-wrap) {
  overflow-x: auto;
}

/* Text and semantic state come from existing components, never label matching. */
#root .app-shell.product-shell.original-ui :is(.status, .tag, .account-tag, .account-tag-chip, .account-connection-state, .ldb-status, .ldb-tags > span, .campaign-status, .catalog-state, .catalog-complete, .catalog-partial, .catalog-interest, .proxy-state, .journal-state, .billing-status, .account-spam-status, .approval-status, .studio-status, .digest-chip, .subtle-chip, .setup-account-status, .capture-tag, .shop-order-status, .pa-status) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 3px 7px;
  border: 0;
  border-radius: 3px;
  background: var(--tag-neutral);
  color: var(--tag-ink);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: middle;
  box-shadow: none;
}
#root .app-shell.product-shell.original-ui :is(.tag, .account-tag, .account-tag-chip, .ldb-tags > span, .tag-purple, .digest-chip, .capture-tag) {
  background: var(--tag-violet);
}
#root .app-shell.product-shell.original-ui :is(.tag-neutral, .ldb-status.unqualified, .proxy-state.unchecked, .campaign-status.is-archived, .campaign-status.is-cancelled) {
  background: var(--tag-neutral);
}
#root .app-shell.product-shell.original-ui :is(.status.success, .account-connection-state.is-connected, .ldb-status.qualified, .campaign-status.is-running, .campaign-status.is-completed, .catalog-complete, .catalog-state.DONE, .proxy-state.valid, .account-spam-status.is-clear, .approval-status-approved, .studio-status-ready, .shop-order-status.completed, .pa-status[data-tone="good"]) {
  background: var(--tag-green);
}
#root .app-shell.product-shell.original-ui :is(.ldb-status.new, .campaign-status.is-queued, .campaign-status.is-prepared, .catalog-state.LEASED, .catalog-state.QUEUED, .catalog-state.PENDING, .approval-status-in_review, .setup-account-status) {
  background: var(--tag-blue);
}
#root .app-shell.product-shell.original-ui .ldb-status.contacted { background: var(--tag-violet); }
#root .app-shell.product-shell.original-ui .billing-invoice[data-state="paid"] .billing-status { background: var(--tag-green); }
#root .app-shell.product-shell.original-ui .billing-invoice[data-state="failed"] .billing-status { background: var(--tag-red); }
#root .app-shell.product-shell.original-ui :is(.status.warning, .account-connection-state.needs-attention, .campaign-status.is-held, .campaign-status.is-paused, .campaign-status.is-stopped, .campaign-status.is-needs_setup, .catalog-state.UNKNOWN, .catalog-state.BLOCKED, .catalog-state.RETRY, .journal-state.is-attention, .account-spam-status.is-checking, .approval-status-changes_requested, .studio-status-requires_connection, .pa-status[data-tone="warning"]) {
  background: var(--tag-yellow);
}
#root .app-shell.product-shell.original-ui :is(.status.danger, .tag-pink, .proxy-state.error, .account-spam-status.is-restricted, .catalog-state.FAILED, .shop-order-status.failed, .pa-status[data-tone="danger"]) {
  background: var(--tag-red);
}
/* Colored fills carry the small-label hierarchy; text already names the state. */
#root .app-shell.product-shell.original-ui :is(.status, .ldb-status, .account-spam-status, .account-connection-state) > i { display: none; }
#root .app-shell.product-shell.original-ui .campaign-status::before { display: none; }
#root .app-shell.product-shell.original-ui .account-tag { display: inline-block; }
#root .app-shell.product-shell.original-ui :is(.account-tags-row, .ldb-tags, .lead-tags) { gap: 5px; }
#root .app-shell.product-shell.original-ui :is(.count-pill, .page-count, .count-badge, .stage-count) {
  border-radius: 3px;
  background: var(--tag-neutral);
  color: var(--table-muted);
  font-weight: 400;
}
#root .app-shell.product-shell.original-ui table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
  accent-color: var(--ui-action);
  cursor: pointer;
}

/* A floating selection toolbar matches the existing bulk-action workflow. */
#root .app-shell.product-shell.original-ui :is(.selection-bar, .ldb-bulk-bar) {
  background: var(--ui-action);
  color: #fff;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  box-shadow: 0 4px 12px #17161c14;
}
#root .app-shell.product-shell.original-ui .selection-bar button {
  color: #fff;
  background: transparent;
  border-radius: 6px;
}

@media (hover: hover) and (pointer: fine) {
  #root .app-shell.product-shell.original-ui table tbody tr:hover,
  #root .app-shell.product-shell.original-ui table tbody tr:hover > td { background: var(--surface); }
}
/* Keep feature-owned mobile cards and their labeled metric layouts intact. */
@media (max-width: 700px) {
  #root .app-shell.product-shell.original-ui :is(.catalog-table, .lzt-table) td {
    height: auto;
    padding: 0;
    border-radius: 0;
  }
  #root .app-shell.product-shell.original-ui :is(.catalog-table, .lzt-table) tbody tr {
    border-color: var(--table-line);
    border-radius: 0;
  }
}
@media (max-width: 700px), (pointer: coarse) {
  #root .app-shell.product-shell.original-ui table :is(button, summary) { min-height: 44px; }
  #root .app-shell.product-shell.original-ui .selection-bar button { min-height: 44px; }
}

/* Workbench content shares one canvas. Artwork belongs to the tool catalogue,
   not to repeated operational summaries. Keep this scope out of account dialogs. */
#root .app-shell.product-shell.original-ui .accounts-workbench > :is(
  .account-tools-hub, .account-fleet-stats, .account-operations-overview,
  .accounts-inline-warmup, .warmup-pool-panel, .warm-account-banner,
  .workbench-content, .account-fleet-banner
) {
  margin-inline: var(--page-gutter);
  inline-size: auto;
  max-inline-size: calc(100% - 2 * var(--page-gutter));
  box-sizing: border-box;
}
#root .app-shell.product-shell.original-ui .accounts-workbench > .page-heading {
  padding-bottom: 0;
  margin-bottom: 12px;
}
#root .app-shell.product-shell.original-ui .accounts-workbench .account-operations-overview {
  margin-bottom: 12px;
}
#root .app-shell.product-shell.original-ui .accounts-workbench .operations-metrics {
  padding-block: 12px;
}
#root .app-shell.product-shell.original-ui .accounts-workbench .operations-metrics strong {
  font-size: 22px;
  letter-spacing: -.025em;
}
#root .app-shell.product-shell.original-ui .accounts-workbench .account-fleet-stats {
  margin-bottom: 16px;
}
#root .app-shell.product-shell.original-ui .accounts-workbench .accounts-inline-warmup {
  margin-bottom: 16px;
}
#root .app-shell.product-shell.original-ui .accounts-workbench .warmup-editor {
  margin: 0;
  padding: 12px 16px;
}
#root .app-shell.product-shell.original-ui .accounts-workbench .warmup-editor > header {
  gap: 16px;
}
#root .app-shell.product-shell.original-ui .accounts-workbench .warmup-collapse {
  min-height: 44px;
  gap: 8px;
}
#root .app-shell.product-shell.original-ui .accounts-workbench .warmup-title {
  font-size: 15px;
}
#root .app-shell.product-shell.original-ui .accounts-workbench :is(.warmup-flame, .warm-account-art, .warm-account-eyebrow) {
  display: none;
}
#root .app-shell.product-shell.original-ui .accounts-workbench .warm-account-banner {
  gap: 16px;
  margin-block: 12px;
  padding: 12px 16px;
  border-color: var(--line);
  border-radius: var(--panel-radius);
  background: var(--surface);
}
#root .app-shell.product-shell.original-ui .accounts-workbench .warm-account-copy h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}
#root .app-shell.product-shell.original-ui .accounts-workbench .warm-account-copy p {
  font-size: 12px;
  max-width: 64ch;
}
#root .app-shell.product-shell.original-ui .accounts-workbench .warm-account-banner .button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
  font-size: 13px;
}
#root .app-shell.product-shell.original-ui .accounts-workbench .warm-account-banner .button:hover {
  background: var(--surface-soft);
}
#root .app-shell.product-shell.original-ui .accounts-workbench .account-tools-hub button > svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
@media (max-width: 800px) {
  #root .app-shell.product-shell.original-ui .accounts-workbench .warmup-editor > header {
    gap: 12px 8px;
  }
}
@media (max-width: 700px), (pointer: coarse) {
  #root .app-shell.product-shell.original-ui .accounts-workbench .warm-account-banner .button {
    min-height: 44px;
  }
}
