/* Shared desktop data-list contract. Summary cards, timelines and wizard steps retain their semantics. */
#ctrlviewConsole {
  --list-line: #e5e7ef;
  --list-header: #f7f8fc;
  --list-ink: #344054;
  --list-muted: #596579;
  --list-hover: #f6f5fb;
}
#ctrlviewConsole :is(#appShell, dialog) .table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  overscroll-behavior-inline: contain;
}
#ctrlviewConsole :is(#appShell, dialog) :is(.cloudflare-account-table, .drive-backup-table, .model-request-table) {
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--list-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}
#ctrlviewConsole :is(#appShell, dialog) table:where(:not(#domainMetricTable)) {
  width: 100%;
  min-width: 720px;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--list-ink);
  background: #fff;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
#ctrlviewConsole :is(#appShell, dialog) table:where(:not(#domainMetricTable)) :is(th, td) {
  width: auto;
  height: auto;
  padding: 15px 12px;
  border: 0;
  border-bottom: 1px solid var(--list-line);
  background: #fff;
  color: var(--list-ink);
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: anywhere;
}
#ctrlviewConsole :is(#appShell, dialog) table:where(:not(#domainMetricTable)) th {
  background: var(--list-header);
  color: var(--list-muted);
  font-weight: 500;
  white-space: nowrap;
}
/* Pagination bounds the result set; show every row on the current page in normal page flow. */
#ctrlviewConsole #appShell .table-wrap { height: auto; min-height: 0; max-height: none; }
#ctrlviewConsole #appShell .table-wrap thead th { position: static; }
#ctrlviewConsole #appShell :is(.module-toolbar, .record-toolbar, .backup-filter-toolbar) {
  padding: 16px 20px;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--list-line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
#ctrlviewConsole :is(#appShell, dialog) table:where(:not(#domainMetricTable)) tbody tr:hover > td { background: var(--list-hover); }
#ctrlviewConsole :is(#appShell, dialog) table:where(:not(#domainMetricTable)) tbody tr:last-child > td { border-bottom: 0; }
#ctrlviewConsole :is(#appShell, dialog) table :is(.resource-identity strong, .task-identity strong, .site-title strong, .table-sort-button) { font-size: 16px; }
#ctrlviewConsole :is(#appShell, dialog) table :is(small, time small, .resource-sync small, .bar-caption, .resource-warning) { font-size: 12px; color: var(--list-muted); line-height: 1.6; }
#ctrlviewConsole :is(#appShell, dialog) table :is(input:not([type="checkbox"]), select) {
  max-width: 100%;
  min-height: 40px;
  font-size: 16px;
  border: 1px solid #d8dce7;
  border-radius: 6px;
  background: #fff;
  color: var(--list-ink);
}
#ctrlviewConsole :is(#appShell, dialog) :is(.table-action, .bt-row-action, .bt-secret-toggle) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 6px;
  min-width: 34px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #e2dfed;
  border-radius: 6px;
  background: #fff;
  color: #6351a1;
  box-shadow: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
}
#ctrlviewConsole :is(#appShell, dialog) :is(.table-action, .bt-row-action, .bt-secret-toggle):hover:not(:disabled) { color: #48377f; border-color: #ada1cc; background: #f6f3fd; }
#ctrlviewConsole :is(#appShell, dialog) :is(.table-action.danger, .table-action.is-danger, .table-action--danger, .bt-row-action--danger) { color: #b42332; border-color: #f0d5da; }
#ctrlviewConsole :is(#appShell, dialog) :is(.table-action.danger, .table-action.is-danger, .table-action--danger, .bt-row-action--danger):hover:not(:disabled) { color: #912032; border-color: #d99ba6; background: #fff4f5; }
#ctrlviewConsole :is(#appShell, dialog) :is(.table-action, .bt-row-action):disabled { opacity: .45; cursor: not-allowed; }
#ctrlviewConsole :is(#appShell, dialog) :is(.table-action, .bt-row-action, .bt-secret-toggle) svg { width: 16px; height: 16px; flex-shrink: 0; }
#ctrlviewConsole :is(#appShell, dialog) .actions-cell { display: flex; align-items: center; gap: 6px; }
#ctrlviewConsole :is(#appShell, dialog) :is(.table-action, .bt-row-action, .bt-secret-toggle, .list-pagination select, .table-sort-button):focus-visible { outline: 2px solid #7b61b6; outline-offset: 3px; }
#ctrlviewConsole :is(#appShell, dialog) .list-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px 20px;
  border: 0;
  border-top: 1px solid var(--list-line);
  border-radius: 0;
  background: #fff;
  color: var(--list-muted);
  box-shadow: none;
  font-size: 14px;
}
#ctrlviewConsole :is(#appShell, dialog) .list-pagination :is(label, strong, select) { font-size: 14px; color: var(--list-muted); }
#ctrlviewConsole :is(#appShell, dialog) .list-pagination-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
#ctrlviewConsole :is(#appShell, dialog) .list-pagination-controls label { display: inline-flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; }
#ctrlviewConsole :is(#appShell, dialog) .list-pagination select { min-height: 34px; background: #fff; border: 1px solid #d8dce7; border-radius: 6px; }
#ctrlviewConsole :is(#appShell, dialog) .list-pagination .table-action { width: 34px; height: 34px; padding: 6px; }
#ctrlviewConsole #cloudflareDialog .cloudflare-row-actions .ghost-button { min-height: 34px; padding: 6px 9px; border: 1px solid #e2dfed; border-radius: 6px; background: #fff; color: #6351a1; box-shadow: none; font-size: 13px; }
#ctrlviewConsole #cloudflareDialog .cloudflare-row-actions .ghost-button:hover:not(:disabled) { background: #f6f3fd; border-color: #ada1cc; }
#ctrlviewConsole #cloudflareDialog [data-cf-action="delete"] { color: #b42332; border-color: #f0d5da; }
/* Keep wide editable rows legible; scrolling belongs to the table, never the page. */
#ctrlviewConsole #alertRulesPanel table { min-width: 1580px; }
#ctrlviewConsole #alertRulesPanel :is(th, td) { min-width: 110px; }
#ctrlviewConsole #alertRulesPanel td:first-child { min-width: 180px; }
#ctrlviewConsole #alertRulesPanel td:nth-child(2) { min-width: 220px; }
#ctrlviewConsole #gscBindingsPanel table { min-width: 960px; }
#ctrlviewConsole #gscBindingsPanel .table-wrap select { min-width: 180px; }
#ctrlviewConsole #gscBindingsPanel .list-pagination select { min-width: 0; width: auto; }
/* Allocate real column widths instead of letting long panel URLs squeeze identities and actions. */
#ctrlviewConsole #bt-account-manager table { min-width: 900px; table-layout: fixed; }
#ctrlviewConsole #bt-account-manager th:nth-child(1) { width: 16%; }
#ctrlviewConsole #bt-account-manager th:nth-child(2) { width: 24%; }
#ctrlviewConsole #bt-account-manager th:nth-child(3) { width: 14%; }
#ctrlviewConsole #bt-account-manager th:nth-child(4) { width: 16%; }
#ctrlviewConsole #bt-account-manager th:nth-child(5) { width: 16%; }
#ctrlviewConsole #bt-account-manager th:nth-child(6) { width: 14%; }
#ctrlviewConsole #bt-account-manager :is(.site-title strong, .site-title span, .bt-panel-address a) { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
#ctrlviewConsole #bt-account-manager .bt-row-actions { justify-content: flex-start; }
#ctrlviewConsole #bt-account-manager .bt-secret-cell code { padding-inline: 5px; }
#ctrlviewConsole #bt-account-manager .bt-secret-cell code.is-revealed { white-space: nowrap; overflow-x: auto; text-overflow: clip; scrollbar-width: none; }
#ctrlviewConsole #alertHistoryPanel :is(th, td):last-child { min-width: 160px; }
#ctrlviewConsole #emailRecordsPanel :is(th, td):last-child { min-width: 280px; }
#ctrlviewConsole :is(#appShell, dialog) table td:has(.actions-cell, .bt-row-actions, .cloudflare-row-actions) { white-space: nowrap; }
/* Numeric columns use the same alignment and stable digits as the approved metrics list. */
#ctrlviewConsole #serverInventoryPanel table :is(th, td):is(:nth-child(3), :nth-child(4), :nth-child(5)),
#ctrlviewConsole #websiteStatusPanel table :is(th, td):nth-child(5),
#ctrlviewConsole #serverDiscoveryPanel table :is(th, td):nth-child(3),
#ctrlviewConsole #gscAccountsPanel table :is(th, td):nth-child(3),
#ctrlviewConsole #emailRecordsPanel table :is(th, td):nth-child(4) { text-align: right; }
#ctrlviewConsole #serverInventoryPanel .bar-caption { justify-content: flex-end; }
#ctrlviewConsole #serverInventoryPanel .resource-meter .bar-caption { font-size: 16px; }
#ctrlviewConsole #websiteStatusPanel .site-group-row > td { padding: 0; }
#ctrlviewConsole #websiteStatusPanel .site-group-toggle { width: 100%; margin: 0; padding: 12px 20px; border: 0; border-radius: 0; box-shadow: none; background: #f8f9fc; }
#ctrlviewConsole #websiteStatusPanel .site-group-toggle:hover { background: #f0f1f8; }
#ctrlviewConsole :is(#appShell, dialog) table .resource-warning { color: #925000; }
@media (min-width: 1101px) {
  #ctrlviewConsole #backups .data-list-scroll { height: auto; min-height: 0; max-height: none; overflow-x: auto; background: #fff; }
  #ctrlviewConsole #backups .data-list-scroll > .backup-list-head { position: static; }
  #ctrlviewConsole #backups :is(.backup-config-list, .backup-file-list, .backup-schedule-list, .backup-activity-list) { gap: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
  #ctrlviewConsole #backups :is(.backup-list-row, .backup-file-row, .backup-schedule-row, .backup-activity-row, .backup-server-group) { margin: 0; border: 0; border-bottom: 1px solid var(--list-line); border-radius: 0; background: #fff; box-shadow: none; }
  #ctrlviewConsole #backups :is(.backup-config-list, .backup-file-list, .backup-schedule-list, .backup-activity-list, .backup-server-group-body) > :last-child { border-bottom: 0; }
  #ctrlviewConsole #backups :is(.backup-list-head, .backup-list-row) { padding: 15px 20px; font-size: 16px; line-height: 1.6; }
  #ctrlviewConsole #backups .backup-list-head { margin: 0; border: 0; border-bottom: 1px solid var(--list-line); border-radius: 0; background: var(--list-header); color: var(--list-muted); font-weight: 500; }
  #ctrlviewConsole #backups .backup-list-row:hover { background: var(--list-hover); }
  #ctrlviewConsole #backups .backup-list-row strong { font-size: 16px; color: var(--list-ink); }
  #ctrlviewConsole #backups .backup-list-stack > span { font-size: 12px; color: var(--list-muted); line-height: 1.6; white-space: normal; overflow: visible; text-overflow: clip; }
  #ctrlviewConsole #backups .backup-list-row small { font-size: 12px; color: var(--list-muted); line-height: 1.6; }
  #ctrlviewConsole #backups .backup-list-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  #ctrlviewConsole #backups .backup-server-group-toggle { padding: 12px 20px; border: 0; border-bottom: 1px solid var(--list-line); border-radius: 0; background: #f8f9fc; color: var(--list-ink); box-shadow: none; font-size: 16px; }
  #ctrlviewConsole #backups :is(.backup-config-grid, .backup-file-grid, .backup-schedule-grid, .backup-activity-grid) > * { min-width: 0; overflow-wrap: anywhere; }
  #ctrlviewConsole #backups .backup-schedule-grid :is(strong, small) { max-width: 100%; white-space: normal; overflow: visible; text-overflow: clip; }
  #ctrlviewConsole #backups .backup-schedule-grid > :nth-child(3) strong { text-wrap: balance; }
  #ctrlviewConsole #backups .backup-file-grid > :nth-child(2) { text-align: right; padding-right: 12px; font-variant-numeric: tabular-nums; }
}
#ctrlviewConsole #websiteEventsPanel .event-log-list,
#ctrlviewConsole #emailNotificationRows { margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; list-style: none; }
#ctrlviewConsole #websiteEventsPanel .event-item,
#ctrlviewConsole #emailNotificationRows > li { margin: 0; padding: 15px 20px; border: 0; border-bottom: 1px solid var(--list-line); border-radius: 0; background: #fff; box-shadow: none; font-size: 16px; line-height: 1.6; }
#ctrlviewConsole #websiteEventsPanel .event-item strong { font-size: 16px; font-weight: 500; color: var(--list-ink); }
#ctrlviewConsole #websiteEventsPanel .event-item time { font-size: 12px; color: var(--list-muted); }
#ctrlviewConsole #websiteEventsPanel .event-item:hover,
#ctrlviewConsole #emailNotificationRows > li:hover { background: var(--list-hover); }
/* The issue queue is a selectable list with a detail pane; preserve selection semantics. */
#ctrlviewConsole #appShell .issue-list-panel { background: #fff; }
#ctrlviewConsole #appShell .issue-list-row { margin: 0; padding: 15px 16px; border: 0; border-bottom: 1px solid var(--list-line); border-radius: 0; background: #fff; color: var(--list-ink); box-shadow: none; }
#ctrlviewConsole #appShell .issue-list-row:hover { background: var(--list-hover); }
#ctrlviewConsole #appShell .issue-list-row.active { background: #f0ecfa; box-shadow: inset 3px 0 #7960b0; }
#ctrlviewConsole #appShell .issue-list-copy strong { color: var(--list-ink); font-size: 16px; }
#ctrlviewConsole #appShell .issue-list-copy :is(span, small) { color: var(--list-muted); font-size: 12px; }
#ctrlviewConsole #appShell .issue-list-row time { color: var(--list-muted); font-size: 12px; }
#ctrlviewConsole #appShell .issue-list-row:focus-visible { outline: 2px solid #7b61b6; outline-offset: -3px; }
/* Fit the list to the usable viewport, keeping its scroll position and continuation visible. */
#ctrlviewConsole #appShell .list-scroll-surface {
  position: relative;
  max-height: var(--list-viewport-height, none);
  overflow: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  scrollbar-width: auto;
  scrollbar-color: auto;
}
#ctrlviewConsole #appShell .list-scroll-surface::-webkit-scrollbar { width: 8px; height: 8px; }
#ctrlviewConsole #appShell .list-scroll-surface::-webkit-scrollbar-track { background: #f0eef7; border-radius: 8px; }
#ctrlviewConsole #appShell .list-scroll-surface::-webkit-scrollbar-thumb { background: #a899c4; border: 2px solid #f0eef7; border-radius: 8px; }
#ctrlviewConsole #appShell .list-scroll-surface::-webkit-scrollbar-thumb:hover { background: #8065ab; }
@supports not selector(::-webkit-scrollbar) {
  #ctrlviewConsole #appShell .list-scroll-surface { scrollbar-width: thin; scrollbar-color: #a899c4 #f0eef7; }
}
#ctrlviewConsole #appShell .list-scroll-surface:focus-visible { outline: 2px solid #7b61b6; outline-offset: -2px; }
#ctrlviewConsole #appShell .list-scroll-surface thead th,
#ctrlviewConsole #appShell .list-scroll-surface > .backup-list-head { position: sticky; top: 0; z-index: 2; }
#ctrlviewConsole #appShell .list-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 32px;
  margin: 0;
  padding: 4px 12px;
  border: 0;
  border-top: 1px solid var(--list-line);
  border-radius: 0;
  background: #faf8fd;
  color: #63518c;
  box-shadow: none;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}
#ctrlviewConsole #appShell .list-scroll-hint[hidden] { display: none; }
#ctrlviewConsole #appShell .list-scroll-hint:hover:not(:disabled) { background: #f0eaf8; color: #48377f; }
#ctrlviewConsole #appShell .list-scroll-hint:disabled { opacity: 1; color: #596579; cursor: default; }
#ctrlviewConsole #appShell .list-scroll-hint:focus-visible { outline: 2px solid #7b61b6; outline-offset: -3px; }
