/* Sales markup aliases only. Fonts, geometry, surfaces and gradient are shared. */
.gc11 {
  --app-prospect: var(--workflow-sales-prospect-accent);
  --app-pitch: var(--workflow-sales-pitch-accent);
  --app-proposal: var(--workflow-sales-proposal-accent);
  --app-presentation: var(--workflow-sales-presentation-accent);
  --app-frame: var(--workflow-sales-frame-accent);
  --app-paper: var(--workflow-sales-paper-accent);
  --app-social: var(--workflow-sales-social-accent);
  --app-campaign: var(--workflow-sales-campaign-accent);
  --app-audience-export: var(--workflow-sales-audience-export-accent);
  --app-survey: var(--workflow-sales-survey-accent);
  --app-nurture: var(--workflow-sales-nurture-accent);
  --app-mailer: var(--workflow-sales-mailer-accent);
  --ok: var(--workflow-sql-accent);
  --danger: var(--workflow-screenshot-accent);
  --pending: var(--gc11-text-muted);
  --active: var(--workflow-code-accent);
}
.gc11 a { background: transparent; border: 0; border-radius: 0; padding: 0; color: var(--gc11-link); font-weight: inherit; display: inline; }
.gc11 .gc11-rail-link { background: transparent; border-radius: 0; }
.gc11 a.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: var(--action-padding); min-height: var(--control-min-height); }
.gc11 a:is(.toolbar-icon-btn, .icon-btn, .history-job-action-btn) { display: inline-flex; align-items: center; justify-content: center; padding: 8px; min-height: 32px; }
.gc11 .daily-app-link:not(.gc11-launcher-action, .ghost) { display: inline-flex; padding: var(--action-padding); min-height: var(--control-min-height); background: var(--primary-action); color: var(--on-primary-action); border: 1px solid var(--primary-action); border-radius: var(--control-radius); }
.gc11 .shell-toolbar { display: none; }
.gc11 .panel { background: var(--gc11-form-surface); background-image: none; border: 1px solid var(--gc11-panel-border); box-shadow: none; }
/* App-owned output review surfaces consume the host theme. These rules never
   enter authored email/document iframe content or exported HTML. */
.gc11 :is(.proposal-preview, .prompt-log, .mailer-html-source) { background: var(--gc11-field-background); color: var(--gc11-text); border-color: var(--gc11-field-border); caret-color: var(--gc11-text); }
.gc11 .proposal-preview:focus { outline: 2px solid var(--focus-ring); }
.gc11 :is(.pitch-step-card, .gamma-credentials-grid, .frame-render-log-panel, .mailer-html-toolbar) { background: var(--gc11-surface-raised); background-image: none; color: var(--gc11-text); border-color: var(--gc11-panel-border); box-shadow: none; }
.gc11 .pitch-output-preview { color: var(--gc11-text); }
.gc11 .pitch-output-preview :is(.pitch-scenario-product-block, .pitch-scenario-card, .pitch-wave-block, .pitch-touch-block) { background: var(--gc11-field-background); background-image: none; color: var(--gc11-text); border-color: var(--gc11-panel-border); box-shadow: none; }
.gc11 .pitch-output-preview :is(.pitch-scenario-section-heading, .pitch-scenario-product-heading, .pitch-scenario-card-title, .pitch-touch-heading, .pitch-touch-body, .pitch-wave-heading) { color: var(--gc11-text); border-color: var(--gc11-panel-border); }
.gc11 .pitch-output-preview :is(.pitch-scenario-product-descriptor, .pitch-touch-meta) { color: var(--gc11-text-muted); }
.gc11 .pitch-output-preview :is(.pitch-scenario-card-label, .pitch-touch-meta strong) { color: var(--workflow-sales-pitch-accent); }
.gc11 :is(.proposal-preview, .pitch-output-preview) :is(th, td) { border-color: var(--gc11-panel-border); }
.gc11 :is(.proposal-preview, .pitch-output-preview) th { background: var(--gc11-form-surface); }
.gc11 .proposal-preview :is(.roi-positive, .roi-reduction) { color: var(--gc11-text); }
.gc11 .frame-render-log-pre { color: var(--gc11-text); }
.gc11 .mailer-html-studio:not([data-mailer-preview-canvas='light']):not([data-mailer-preview-canvas='dark']) { background: var(--gc11-field-background); background-image: none; color: var(--gc11-text); border-color: var(--gc11-panel-border); }
.gc11 .mailer-html-preview-empty { color: var(--gc11-text-muted); border-color: var(--gc11-field-border); }
.gc11 .mailer-preview-canvas-btn:not(.mailer-preview-canvas-btn-active) {
  color: var(--gc11-text-muted);
  background: var(--gc11-surface-raised);
  border-color: var(--gc11-field-border);
}
.gc11 .mailer-preview-canvas-btn.mailer-preview-canvas-btn-active {
  color: #111111;
  background: #e84e0e;
  border-color: #e84e0e;
}
.gc11 .panel :is(h3, h4), .gc11 :is(.admin-subapp, .admin-key-card) :is(h3, h4) { font-family: var(--gc11-content-font); font-weight: 600; color: var(--gc11-text); }
.gc11 .hero h1 { font-family: var(--gc11-shell-font); }
.gc11 .hero .gc11-hero-heading h1 { font-weight: var(--gc11-hero-title-weight); }
.gc11 .hero:has(.gc11-hero-heading) { max-width: none; }
.gc11 .gc11-launcher-card h3 { color: var(--launcher-card-primary-foreground); font-family: var(--gc11-shell-font); font-weight: 700; }
.gc11 .module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gc11 .gc11-launcher-item { min-width: 0; padding: 0; border: 0; background: transparent; background-image: none; box-shadow: none; }
.gc11 .gc11-launcher-action { color: var(--launcher-card-action-foreground); background: var(--launcher-card-action-surface); text-decoration: none; border-color: rgb(255 255 255 / .65); }
.gc11 .gc11-launcher-card--disabled { opacity: .65; }
.gc11 .gc11-launcher-description { font-size: .86rem; }
.gc11 .gc11-launcher-item > p:not(.gc11-launcher-description) { font-size: .8rem; }
.gc11 .gc11-launcher-grid .hidden { display: none; }
.gc11 :is(.daily-app-card--prospect, .history-job-card--prospect) { --workflow-accent: var(--app-prospect); }
.gc11 :is(.daily-app-card--pitch, .history-job-card--pitch) { --workflow-accent: var(--app-pitch); }
.gc11 :is(.daily-app-card--proposal, .history-job-card--proposal) { --workflow-accent: var(--app-proposal); }
.gc11 :is(.daily-app-card--presentation, .history-job-card--presentation) { --workflow-accent: var(--app-presentation); }
.gc11 :is(.daily-app-card--frame, .history-job-card--frame) { --workflow-accent: var(--app-frame); }
.gc11 :is(.daily-app-card--paper, .history-job-card--paper) { --workflow-accent: var(--app-paper); }
.gc11 :is(.daily-app-card--social, .history-job-card--social) { --workflow-accent: var(--app-social); }
.gc11 :is(.daily-app-card--campaign, .history-job-card--campaign) { --workflow-accent: var(--app-campaign); }
.gc11 :is(.daily-app-card--audience-export, .history-job-card--audience_export) { --workflow-accent: var(--app-audience-export); }
.gc11 :is(.daily-app-card--survey, .history-job-card--survey) { --workflow-accent: var(--app-survey); }
.gc11 :is(.daily-app-card--nurture, .history-job-card--nurture) { --workflow-accent: var(--app-nurture); }
.gc11 :is(.daily-app-card--mailer, .history-job-card--mailer) { --workflow-accent: var(--app-mailer); }
.gc11 .daily-app-pill[class*='daily-app-pill--'] { color: var(--workflow-accent, var(--gc11-text)); border: 1px solid var(--workflow-accent, var(--gc11-field-border)); background: var(--gc11-surface-raised); }
.gc11 .pagination-page-btn[aria-current='page'] { color: var(--gc11-selection-foreground); background: var(--gc11-selection-background); border-color: var(--gc11-selection-border); box-shadow: none; }
.gc11 :is(.daily-app-pill.daily-app-pill--prospect, .history-workflow-badge--prospect, .admin-history-workflow-label--prospect) { --workflow-accent: var(--app-prospect); }
.gc11 :is(.daily-app-pill.daily-app-pill--pitch, .history-workflow-badge--pitch, .admin-history-workflow-label--pitch) { --workflow-accent: var(--app-pitch); }
.gc11 :is(.daily-app-pill.daily-app-pill--proposal, .history-workflow-badge--proposal, .admin-history-workflow-label--proposal) { --workflow-accent: var(--app-proposal); }
.gc11 :is(.daily-app-pill.daily-app-pill--presentation, .history-workflow-badge--presentation, .admin-history-workflow-label--presentation) { --workflow-accent: var(--app-presentation); }
.gc11 :is(.daily-app-pill.daily-app-pill--frame, .history-workflow-badge--frame, .admin-history-workflow-label--frame) { --workflow-accent: var(--app-frame); }
.gc11 :is(.daily-app-pill.daily-app-pill--paper, .history-workflow-badge--paper, .admin-history-workflow-label--paper) { --workflow-accent: var(--app-paper); }
.gc11 :is(.daily-app-pill.daily-app-pill--social, .history-workflow-badge--social, .admin-history-workflow-label--social) { --workflow-accent: var(--app-social); }
.gc11 :is(.daily-app-pill.daily-app-pill--campaign, .history-workflow-badge--campaign, .admin-history-workflow-label--campaign) { --workflow-accent: var(--app-campaign); }
.gc11 :is(.daily-app-pill.daily-app-pill--audience-export, .history-workflow-badge--audience_export, .admin-history-workflow-label--audience_export) { --workflow-accent: var(--app-audience-export); }
.gc11 :is(.daily-app-pill.daily-app-pill--survey, .history-workflow-badge--survey, .admin-history-workflow-label--survey) { --workflow-accent: var(--app-survey); }
.gc11 :is(.daily-app-pill.daily-app-pill--nurture, .history-workflow-badge--nurture, .admin-history-workflow-label--nurture) { --workflow-accent: var(--app-nurture); }
.gc11 :is(.daily-app-pill.daily-app-pill--mailer, .history-workflow-badge--mailer, .admin-history-workflow-label--mailer) { --workflow-accent: var(--app-mailer); }
.gc11 .history-card { border: 1px solid var(--workflow-accent, var(--gc11-panel-border)); background: var(--gc11-surface-raised); box-shadow: none; }
.gc11 .history-workflow-badge { color: var(--workflow-accent, var(--gc11-text)); border: 1px solid var(--workflow-accent, var(--gc11-field-border)); background: var(--gc11-surface-raised); }
.gc11 .admin-history-type-pill { border: 1px solid var(--workflow-accent, var(--gc11-field-border)); }
.gc11 button.gc11-choice[role='tab'][aria-selected='true'] { color: var(--gc11-selection-foreground); background: var(--gc11-selection-background); border-color: var(--gc11-selection-border); box-shadow: none; }
.gc11 .admin-history-type-pill::before { background: none; border-radius: 0; }
.gc11 :is(.admin-subapp, .admin-key-card, .admin-shared-config-panel, .admin-subsection, .admin-settings-card, .job-status, .result-panel, .moment, .empty-state, .upload-dropzone, .suite-sso-panel) { color: var(--gc11-text); background: var(--gc11-form-surface); background-image: none; border-color: var(--gc11-panel-border); box-shadow: none; }
.gc11 :is(.ddam-picker-block, .ddam-picker-shell, .ddam-asset-picker, .ddam-picker-panel, .ddam-picker-launcher, .ddam-publisher-launcher) { color: var(--gc11-text); background: var(--gc11-form-surface); border-color: var(--gc11-panel-border); }
.gc11 :is(.modal-card, .media-modal-content, .media-modal-dialog, .support-ticket-modal-content, .dialog, .social-modal-card) { color: var(--gc11-text); background: var(--gc11-form-surface); border-color: var(--gc11-panel-border); box-shadow: none; }
.gc11 :is(.modal-content, .modal-head, .modal-actions, .opportunity-editor-card, .opportunity-prospect-results, .trinity-host-card, .trinity-host-head, .mailer-library-modal-controls) { color: var(--gc11-text); background: var(--gc11-form-surface); background-image: none; border-color: var(--gc11-panel-border); box-shadow: none; }
.gc11 .small-link { min-height: 28px; padding: 6px 8px; }
.gc11 :is(.history-status-pill, .status-pill, .mailer-editor-contract-badge, .social-repository-count-chip:not(button)) { color: var(--gc11-text); background: var(--gc11-surface-raised); border-color: var(--gc11-field-border); }
.gc11 :is(.social-agenda-card, .social-calendar-card, .social-repository-card, .mailer-draft-card, .mailer-template-card, .nurture-path-card, .nurture-step-card, .campaign-semaphore-card, .campaign-platform-breakdown-card, .campaign-verdict-card, .campaign-trend-card, .prospect-detail-card, .prospect-assignment-card) { color: var(--gc11-text); background: var(--gc11-surface-raised); background-image: none; border-color: var(--gc11-panel-border); box-shadow: none; }
.gc11 :is(.prospect-assignment-table-wrap, .nurture-table-wrap, .mailer-table-wrap) { max-width: 100%; overflow-x: auto; border-color: var(--gc11-panel-border); }
.gc11 table { color: var(--gc11-text); background: var(--gc11-surface-raised); }
.gc11 :is(th, td) { color: inherit; border-color: var(--gc11-panel-border); }
.gc11 th { background: var(--gc11-form-surface); font-family: var(--gc11-content-font); }
.gc11 :is(.section-title-row, .section-header-row, .grid-two, .grid-three, .grid-four) > * { min-width: 0; }
/* Bridge existing Classic !important confirmation rules, keeping action roles. */
.gc11 .ghost.button-save-confirmed, .gc11 .ghost.button-copy-confirmed { color: var(--gc11-text) !important; background: transparent !important; border-color: var(--gc11-field-border) !important; }
.gc11 .button-save-confirmed:not(.ghost) { color: var(--on-primary-action) !important; background: var(--primary-action) !important; border-color: var(--primary-action) !important; }
/* Shared Designer chrome only. The email/document iframe stays untouched. */
.gc11.mailer-designer-page { --mailer-designer-ink: var(--gc11-text); --mailer-designer-panel: var(--gc11-form-surface); --mailer-designer-line: var(--gc11-panel-border); background: var(--gc11-canvas); color: var(--gc11-text); }
.gc11.mailer-designer-page button.gc11-choice { border-radius: var(--control-radius); box-shadow: none; }
.gc11.mailer-designer-page button.gc11-choice[aria-pressed='true'] { background: var(--gc11-selection-background) !important; color: var(--gc11-selection-foreground) !important; border-color: var(--gc11-selection-border) !important; box-shadow: none; }
.gc11.mailer-designer-page :is(.html-editor-draft-recovery, .html-editor-draft-recovery-signal) { background: var(--gc11-form-surface); color: var(--gc11-text); border-color: var(--gc11-field-border); box-shadow: none; backdrop-filter: none; }
.gc11 .mailer-designer-header { background: var(--gc11-form-surface); border-color: var(--gc11-panel-border); }
.gc11 .mailer-designer-header h1 { font-family: var(--gc11-content-font); font-weight: 700; font-size: clamp(30px, 4vw, 48px); line-height: 1.2; }
.gc11 :is(.mailer-designer-kicker span, .mailer-designer-envelope label, .mailer-designer-test-recipient, .mailer-designer-envelope-status, .mailer-designer-fallback summary) { font-family: var(--gc11-content-font); color: var(--gc11-text); }
.gc11.mailer-designer-page :is(.html-editor-topbar, .html-editor-inspector, .html-editor-sidebar, .html-editor-command-bar, .html-editor-stage-head, .html-editor-history-strip, .html-editor-file-menu-popover, .html-editor-revision-dock, .html-editor-inspector-section, .html-editor-context-dock-nav, .html-editor-mode-switch, .html-editor-zoom-control, .html-editor-history-dock, .html-editor-toolbelt, .html-editor-toolbar-cluster, .mailer-designer-layer-actions) { background: var(--gc11-form-surface); color: var(--gc11-text); border-color: var(--gc11-panel-border); box-shadow: none; }
@media(max-width: 1120px) { .gc11 .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width: 760px) {
  .gc11 .module-grid { grid-template-columns: minmax(0, 1fr); }
  .gc11 :is(.grid-two, .grid-three, .grid-four) { grid-template-columns: minmax(0, 1fr); }
  .gc11 :is(.section-title-row, .section-header-row) { flex-wrap: wrap; }
  .gc11 .gc11-rail-nav { max-height: 16rem; overflow-y: auto; }
  .gc11 .gc11-rail-link { flex: 1 0 30%; }
}

/* Clickable media previews are secondary surfaces, not primary actions. */
.gc11 button.frame-scene-asset-preview {
  padding: 0;
  min-height: 0;
  color: var(--gc11-text);
  background: var(--gc11-surface-raised);
  border: 1px solid var(--gc11-panel-border);
  box-shadow: none;
}
.gc11 button:is(.ddam-selected-mini-preview-btn, .nurture-step-asset-preview-btn) {
  color: var(--gc11-text);
  background: transparent;
  border: 0;
  box-shadow: none;
}
.gc11 button.ddam-selected-mini-preview-btn { padding: 0; min-height: 0; }
.gc11 button.nurture-step-asset-preview-btn { padding: 11px 12px; }
.gc11 button.social-sync-candidate-thumb-btn {
  padding: 0;
  min-height: 0;
  color: var(--gc11-text);
  background: var(--gc11-surface-raised);
  border: 1px solid var(--gc11-panel-border);
  box-shadow: none;
}
.gc11 button.social-post-asset-thumb {
  padding: 10px;
  color: var(--gc11-text);
  background: var(--gc11-surface-raised);
  border: 1px solid var(--gc11-panel-border);
  box-shadow: none;
}
.gc11 button.social-post-asset-thumb:hover { border-color: var(--workflow-sales-social-accent); }

/* Day navigation uses compact secondary controls rather than CTA geometry. */
.gc11 button.social-calendar-day-number {
  min-width: 28px;
  min-height: 28px;
  padding: 2px 4px;
  margin-bottom: 4px;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--gc11-text);
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
}
.gc11 button.social-calendar-day-number:hover { background: var(--gc11-surface-raised); border-color: var(--gc11-field-border); }

/* Survey operational surfaces follow the host theme; recipient themes stay isolated. */
.gc11 :is(.survey-inner-panel, .survey-builder-list-item, .survey-library-row,
  .survey-manager-summary-item, .survey-analytics-customer-row:not(.survey-analytics-customer-row--head),
  .survey-analytics-card, .survey-analytics-question-card, .survey-chart-card,
  .survey-builder-ai-row, .survey-bulk-import-card,
  .survey-bulk-preview-row:not(.survey-bulk-preview-row--head), .survey-question-card,
  .survey-send-card, .survey-response-card, .survey-kpi-detail-item,
  .survey-analytics-sender-row:not(.survey-analytics-sender-row--head), .survey-response-answer) {
  color: var(--gc11-text);
  background: var(--gc11-surface-raised);
  background-image: none;
  border-color: var(--gc11-panel-border);
  box-shadow: none;
}
.gc11 :is(.survey-builder-list-item, .survey-library-row):hover,
.gc11 :is(.survey-builder-list-item, .survey-library-row).active { border-color: var(--workflow-sales-survey-accent); box-shadow: none; }
.gc11 .survey-bulk-preview-row--invalid { border-color: var(--danger); }
.gc11 .survey-bulk-send-panel { border-color: var(--gc11-panel-border); }
.gc11 .survey-preview-frame { background: var(--gc11-canvas); border-color: var(--gc11-panel-border); }

.gc11 :is(.survey-builder-heading-id, .survey-builder-list-id) { color: var(--workflow-sales-survey-accent); border-color: var(--workflow-sales-survey-accent); }
.gc11 .survey-chart-bar-shell { background: var(--gc11-field-background); }

/* Shared provider feedback chrome is neutral in every GC11 consumer. */
.gc11 :is(.ses-analytics-pipeline, .delivery-ops-pipeline) {
  color: var(--gc11-text);
  background: var(--gc11-surface-raised);
  background-image: none;
  border-color: var(--gc11-panel-border);
}
.gc11 .ses-analytics-pipeline { border-left-color: var(--app-mailer); }
.gc11 .ses-analytics-pipeline.is-unavailable { border-left-color: var(--gc11-text-muted); }
.gc11 .delivery-ops-pipeline { border-left-color: var(--worker-health); }
.gc11 :is(.ses-analytics-pipeline-facts, .delivery-ops-pipeline-facts) { border-color: var(--gc11-panel-border); }
.gc11 :is(.ses-analytics-pipeline-facts, .delivery-ops-pipeline-facts) dt { color: var(--gc11-text-muted); }
.gc11 :is(.ses-analytics-pipeline-facts, .delivery-ops-pipeline-facts) dd { color: var(--gc11-text); }
.gc11 :is(.nurture-selected-path-strip, .nurture-path-library-row, .nurture-inner-panel .nurture-path-library) {
  color: var(--gc11-text);
  background: var(--gc11-surface-raised);
  background-image: none;
  border-color: var(--gc11-panel-border);
  box-shadow: none;
}
.gc11 .nurture-path-library-row:is(.active, :hover) { background: var(--gc11-form-surface); border-color: var(--workflow-sales-nurture-accent); }
.gc11 .nurture-path-library-row.active .nurture-path-row-title strong { color: var(--workflow-sales-nurture-accent); }

/* Mailer compatibility and derived-content chrome follows the host palette. */
.gc11 :is(.mailer-editor-contract-panel, .mailer-fallback-panel, .mailer-template-mode-banner,
  .mailer-selected-campaign-banner, .mailer-editor-contract-issue, .mailer-email-link-row) {
  color: var(--gc11-text);
  background: var(--gc11-surface-raised);
  background-image: none;
  border-color: var(--gc11-panel-border);
}
.gc11 .mailer-template-mode-banner { border-left-color: var(--workflow-sales-mailer-accent); }
.gc11 .mailer-editor-contract-panel[data-tone="warning"],
.gc11 .mailer-fallback-panel[data-mode="manual"] { border-color: var(--workflow-sales-survey-accent); }
.gc11 .mailer-editor-contract-panel[data-tone="error"] { border-color: var(--danger); }
.gc11 .mailer-fallback-panel textarea[readonly] { background: var(--gc11-field-background); color: var(--gc11-text-muted); }
.gc11 .mailer-fallback-panel[data-mode="manual"] .mailer-editor-contract-badge {
  background: var(--gc11-form-surface);
  color: var(--workflow-sales-survey-accent);
}
.gc11 .mailer-editor-contract-count { color: var(--gc11-text-muted); background: var(--gc11-form-surface); }
.gc11 .mailer-editor-contract-count[data-severity="blocked"] { color: var(--danger); }
.gc11 .mailer-editor-contract-count[data-severity="warning"] { color: var(--workflow-sales-survey-accent); }

/* Campaign dashboard and platform KPI surfaces use shared neutral roles. */
.gc11 :is(.campaign-kpi-card, .campaign-detail-kpi-card, .campaign-breakdown-metric,
  .campaign-executive-stat, .campaign-platform-executive-panel-wrap,
  .social-analytics-kpi-card, .social-analytics-chart-card) {
  color: var(--gc11-text);
  background: var(--gc11-surface-raised);
  background-image: none;
  border-color: var(--gc11-panel-border);
  box-shadow: none;
}
.gc11 :is(.campaign-detail-kpi-card, .campaign-platform-breakdown-card)::after { background: none; }
.gc11 :is(.campaign-kpi-value, .campaign-executive-stat-value, .campaign-breakdown-metric-value) { color: var(--gc11-text); }
.gc11 :is(.campaign-kpi-label, .campaign-kpi-delta, .campaign-executive-stat-note, .campaign-detail-kpi-note, .campaign-breakdown-metric-label) { color: var(--gc11-text-muted); }
.gc11 .campaign-platform-executive-summary { border-color: var(--gc11-panel-border); }
.gc11 .social-analytics-kpi-card--filter:is(:hover, .is-active) { background: var(--gc11-form-surface); border-color: var(--workflow-sales-social-accent); box-shadow: none; }

/* Agenda filters and roomy compact action cards. */
.gc11 .social-agenda-list { grid-template-columns: minmax(0, 1fr); }
.gc11 .social-agenda-group-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.gc11 .social-agenda-card { min-height: 0; height: auto; display: flex; flex-direction: column; gap: 0; }
.gc11 .social-agenda-card-head { flex-wrap: wrap; }
.gc11 .social-agenda-card-head > div { flex-basis: 100%; }
.gc11 .social-agenda-card-title { -webkit-line-clamp: 2; }
.gc11 .social-agenda-card-summary { display: block; overflow: visible; }
.gc11 .social-agenda-card-actions { margin-top: auto; padding-top: 12px; }
.gc11 .social-agenda-inline-status:empty { display: none; }
.gc11 button[data-agenda-filter] { background: var(--gc11-surface-raised); color: var(--gc11-text); border-color: var(--gc11-panel-border); }
.gc11 button[data-agenda-filter][aria-pressed="true"] { background: var(--gc11-form-surface); border-color: var(--workflow-sales-social-accent); }

/* Keep customer identities within Survey analytics grid tracks. */
.gc11 .survey-analytics-card {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}
.gc11 .survey-analytics-card > * { min-width: 0; max-width: 100%; }
.gc11 .survey-analytics-card :is(strong, .muted) { overflow-wrap: anywhere; }
.gc11 :is(.survey-top-pressure-card, .survey-analytics-customer-grid .survey-analytics-card) strong {
  font-size: 1.05rem;
  line-height: 1.35;
}
.gc11 .survey-top-pressure-card .daily-app-pill { justify-self: start; width: auto; white-space: normal; }

/* Company groups are navigation headers rather than primary actions. */
.gc11 .prospect-company-group-actions { gap: 12px; padding: 2px 10px; box-sizing: border-box; }
.gc11 button.prospect-company-group-toggle {
  flex: 1 1 auto; min-width: 0; min-height: 40px; padding: 8px 6px;
  border: 0; border-left: 2px solid transparent; border-radius: 0;
  background: transparent; color: var(--gc11-text); box-shadow: none;
  flex-wrap: wrap; text-align: left;
}
.gc11 button.prospect-company-group-toggle:hover { background: var(--gc11-form-surface); }
.gc11 button.prospect-company-group-toggle[aria-expanded="true"] { border-left-color: var(--gc11-selection-background); }
.gc11 .prospect-company-group-toggle > span[aria-hidden] { color: var(--gc11-selection-background); }
.gc11 .prospect-company-group-toggle strong { display: inline; overflow-wrap: anywhere; white-space: normal; font-size: .875rem; }
.gc11 .prospect-company-group-toggle .muted { color: var(--gc11-text-muted); font-size: .8rem; white-space: normal; }
.gc11 .prospect-company-group-count { padding: 2px 7px; border: 1px solid var(--gc11-panel-border); border-radius: 999px; color: var(--gc11-text-muted); font-size: .72rem; white-space: nowrap; }
.gc11 button.prospect-company-context-btn { flex: 0 0 auto; min-height: 34px; padding: 6px 10px; font-size: .75rem; }
.gc11 .prospect-home-grid-wrap { container-type: inline-size; }
.gc11 .prospect-home-grid-table .prospect-company-group-actions { width: 100cqw; }
.gc11 .prospect-home-grid-table .queue-table-filter-header th { padding: 8px 10px; vertical-align: middle; }
.gc11 .prospect-home-grid-table .queue-table-filter-control { min-width: 0; margin: 0; width: 100%; }
.gc11 .prospect-home-grid-table .queue-table-filter-control :is(input, select) { box-sizing: border-box; width: 100%; height: 36px; min-height: 36px; margin: 0; padding: 6px 9px; font-size: .8rem; }
.gc11 .prospect-home-grid-table [data-home-prospect-filter="status"] { min-width: 130px; }
.gc11 .prospect-home-grid-table [data-home-prospect-filter="prospect_detail"] { min-width: 170px; }

/* Home and Admin history surfaces follow the selected theme. */
.gc11 .trinity-usage-summary { background: var(--gc11-surface-raised); color: var(--gc11-text); }
.gc11 .trinity-usage-summary .muted { color: var(--gc11-text-muted); }
.gc11 .history-search-field input[type="search"] {
  background: var(--gc11-field-background); color: var(--gc11-text);
  border-color: var(--gc11-field-border); caret-color: var(--gc11-text);
}
.gc11 .history-search-field input[type="search"]::placeholder { color: var(--gc11-text-muted); }

/* Home and Admin history share a clear outline in Bright and Dark. */
.gc11 :is(.history-card, .history-workflow-badge, .history-workflow-label, .admin-history-workflow-label, .history-workflow-filter-btn) {
  border-width: 2px;
}

/* Account connection promotion is an operational surface in every theme. */
.gc11 .ai-client-install-card {
  background: var(--gc11-surface-raised); background-image: none;
  color: var(--gc11-text); border-color: var(--gc11-panel-border);
}
.gc11 .ai-client-install-card .muted { color: var(--gc11-text-muted); }
.gc11 .ai-client-install-icon { box-shadow: none; }

/* Prospect Inbox and shared sourcing notifications respect Bright/Dark roles. */
.gc11 .company-sourcing-notification-box {
  background: var(--gc11-surface-raised); color: var(--gc11-text);
  border-color: var(--gc11-panel-border);
}
.gc11 .company-sourcing-notification-box .muted { color: var(--gc11-text-muted); }
.gc11 .company-sourcing-nav-badge {
  color: var(--workflow-sales-prospect-accent);
  border-color: var(--workflow-sales-prospect-accent);
  background: var(--gc11-surface-raised);
}

/* Bright asset inputs/actions stand apart from gray form sections. */
:root:not([data-theme='dark']) .gc11 :is(.ddam-picker-block, .ddam-picker-shell, .ddam-asset-picker, .ddam-picker-panel, .ddam-picker-launcher, .ddam-publisher-launcher, .ddam-publish-panel) {
  background: var(--gc11-surface-raised);
  background-image: none;
  color: var(--gc11-text);
  border-color: var(--gc11-panel-border);
  box-shadow: none;
}
:root:not([data-theme='dark']) .gc11 :is(.ddam-picker-block, .ddam-publish-panel) .muted { color: var(--gc11-text-muted); }

/* Delivery summaries remain readable operational cards in both appearances. */
.gc11 :is(.mailer-send-summary, .mailer-scheduled-batches) {
  background: var(--gc11-surface-raised); background-image: none;
  color: var(--gc11-text); border-color: var(--gc11-panel-border); box-shadow: none;
}
.gc11 .mailer-send-summary .muted { color: var(--gc11-text-muted); }
.gc11 .mailer-send-summary strong { color: var(--gc11-text); }

/* Match the host while the DDAM document is loading or transparent. */
.gc11 .ddam-embed-frame {
  background: var(--gc11-canvas);
  border-color: var(--gc11-panel-border);
}

/* Opportunity summaries are host chrome, not generated report content. */
.gc11 .opportunity-summary-lane {
  background: var(--gc11-surface-raised); background-image: none;
  color: var(--gc11-text); border-color: var(--gc11-panel-border);
}
.gc11 .opportunity-summary-lane :is(p, small, .opportunity-summary-statuses) { color: var(--gc11-text-muted); }
.gc11 .opportunity-summary-statuses strong { color: var(--gc11-text); }
.gc11 :is(.opportunity-currency-code, .opportunity-summary-weighted strong) { color: var(--workflow-sales-prospect-accent); }

/* Nested operational dialogs and fallback chrome follow the host palette. */
.gc11 :is(.model-replacement-row, .media-modal-audio-shell, .media-modal-text-shell, .media-modal-fallback, .media-modal-text) {
  background: var(--gc11-surface-raised); background-image: none;
  color: var(--gc11-text); border-color: var(--gc11-panel-border);
}
/* Provider catalogs have inline Classic paint; override presentation only. */
.gc11 .admin-settings-card {
  background: var(--gc11-surface-raised) !important;
  border-color: var(--gc11-panel-border) !important;
}
.gc11 [id^="admin-ai-policy-"]:is([id$="-available"], [id$="-selected"]) {
  background: var(--gc11-surface-raised) !important;
  color: var(--gc11-text); border-color: var(--gc11-panel-border) !important;
}
.gc11 [id^="admin-ai-policy-"]:is([id$="-available"], [id$="-selected"]) > div { border-color: var(--gc11-panel-border) !important; }
.gc11 :is(.admin-ai-policy-add-btn, .admin-ai-policy-remove-btn) {
  background: var(--gc11-form-surface) !important;
  color: var(--gc11-text) !important; border-color: var(--gc11-field-border) !important;
}

.gc11 .ddam-selected-mini-card {
  background: var(--gc11-surface-raised); color: var(--gc11-text);
  border-color: var(--gc11-panel-border);
}

/* Audit: legacy operational fills must not override resolved Bright.
   Keep Dark/Classic paint and existing workflow/status borders. */
:root[data-theme="bright"] .gc11 :is(
  .delivery-ops-metric,
  .delivery-ops-recipients,
  .delivery-ops-dialog,
  .outlook-prospect-results,
  .activity-grid-autocomplete-results,
  .social-analytics-decision-card,
  .social-post-card,
  .social-paper-source-card,
  .social-calendar-day-timeline,
  .paper-logo-card,
  .frame-selected-music,
  .frame-scene-animation-panel,
  .frame-scene-animation-history-item,
  .frame-tools-menu-panel,
  .signal-tools-menu-panel,
  .composer-draft-language-card,
  .composer-published-card,
  .prospect-assignment-chart-panel,
  .prospect-assignment-group,
  .admin-app-control-card,
  .mailer-immutable-dispatch-review,
  .nurture-step-asset-card,
  .campaign-detail-info-popover,
  .document-library-card,
  .youtube-channel-health,
  .admin-tunnel-health
) {
  background: var(--gc11-surface-raised);
  color: var(--gc11-text);
}

:root[data-theme="bright"] .gc11 :is(.signal-tools-menu-item,.frame-tools-menu-item) {
  color: var(--gc11-text); background: transparent; border-color: var(--gc11-field-border);
}
:root[data-theme="bright"] .gc11 :is(.signal-tools-menu-item,.frame-tools-menu-item):is(:hover,:focus-visible) {
  color: var(--gc11-text); background: var(--gc11-selector-hover);
}

:root[data-theme="bright"] .gc11 :is(.activity-grid-autocomplete-option,.outlook-prospect-results button) {
  color: var(--gc11-text); background: transparent; border-color: var(--gc11-field-border);
}
:root[data-theme="bright"] .gc11 :is(.activity-grid-autocomplete-option:hover,.outlook-prospect-results button:hover,.outlook-prospect-results button:focus) {
  background: var(--gc11-selector-hover);
}
:root[data-theme="bright"] .gc11 :is(.outlook-prospect-results button[aria-selected="true"],.frame-scene-animation-history-item.is-selected,.delivery-ops-metric[aria-pressed="true"]) {
  background: var(--gc11-selection-background); color: var(--gc11-selection-foreground); border-color: var(--gc11-selection-border);
}
:root[data-theme="bright"] .gc11 .delivery-ops-metric[aria-pressed="true"] .delivery-ops-metric-label { color: inherit; }
:root[data-theme="bright"] .gc11 .nurture-step-asset-card--cta {
  background: color-mix(in srgb,var(--app-nurture) var(--gc11-identity-tint),var(--gc11-surface-raised));
}
:root[data-theme="bright"] .gc11 .composer-draft-language-card-active { border-color: var(--gc11-selection-border); }
:root[data-theme="bright"] .gc11 .delivery-ops-recipients-summary { color: var(--gc11-text-muted); }

:root[data-theme="bright"] .gc11 :is(.delivery-ops-recipient-head strong,.delivery-ops-recipient-row strong,.delivery-ops-recipient-state b,.delivery-ops-dialog .delivery-ops-subject) { color: var(--gc11-text); }
:root[data-theme="bright"] .gc11 :is(.delivery-ops-recipient-row span,.delivery-ops-recipient-state em,.delivery-ops-recipients-summary) { color: var(--gc11-text-muted); }
/* Delivery console labels accompany neutral operational surfaces; status marks retain their colors. */
:root[data-theme="bright"] .gc11 :is(.delivery-ops-worker,.delivery-ops-pipeline,.delivery-ops-row,.delivery-ops-progress) { background: var(--gc11-surface-raised); color: var(--gc11-text); }
:root[data-theme="bright"] .gc11 :is(.delivery-ops-worker-facts dd,.delivery-ops-pipeline-facts dd,.delivery-ops-identifiers code,.delivery-ops-progress-head strong,.delivery-ops-progress-metrics b,.delivery-ops-audience-head,.delivery-ops-telemetry-note strong) { color: var(--gc11-text); }
:root[data-theme="bright"] .gc11 :is(.delivery-ops-worker-title-row p,.delivery-ops-worker-facts dt,.delivery-ops-pipeline-facts dt,.delivery-ops-safety-note,.delivery-ops-raw,.delivery-ops-subject,.delivery-ops-identifiers b,.delivery-ops-progress-head,.delivery-ops-progress-metrics span,.delivery-ops-progress-exceptions,.delivery-ops-audience-counts,.delivery-ops-telemetry-note) { color: var(--gc11-text-muted); }
:root[data-theme="bright"] .gc11 :is(.delivery-ops-recipient-tab,.delivery-ops-recipient-tab b) { color: var(--gc11-text); }
:root[data-theme="bright"] .gc11 :is(.delivery-ops-recipient-tab.is-active,.delivery-ops-page-numbers .is-active) { background: var(--gc11-selection-background); color: var(--gc11-selection-foreground); border-color: var(--gc11-selection-border); }
:root[data-theme="bright"] .gc11 .delivery-ops-recipient-tab.is-active b { color: inherit; }
:root[data-theme="bright"] .gc11 :is(.delivery-ops-worker-attention,.delivery-ops-worker-error,.delivery-ops-error,.delivery-ops-recipient-state em:not(:empty),.delivery-ops-row-actions .delivery-ops-cancel) { color: var(--gc11-text); }

/* Admin storage: one neutral section/card hierarchy across the suite. */
.gc11 .admin-subapp-storage { background: var(--gc11-form-surface); background-image: none; color: var(--gc11-text); border-color: var(--gc11-panel-border); }
.gc11 .admin-subapp-storage > .admin-shared-config-panel { background: transparent; background-image: none; border: 0; padding: 0; box-shadow: none; }
.gc11 .admin-storage-overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.gc11 .admin-storage-overview-card { background: var(--gc11-surface-raised); color: var(--gc11-text); border: 1px solid var(--gc11-panel-border); border-radius: 14px; padding: 14px; min-width: 0; }
.gc11 .admin-storage-chart-list { display: grid; gap: 14px; }
.gc11 .admin-storage-chart-row { display: grid; grid-template-columns: minmax(0,148px) minmax(0,1fr) auto; gap: 10px; align-items: center; }
.gc11 .admin-storage-chart-label { min-width: 0; align-items: flex-start; }
.gc11 .admin-storage-chart-bar { height: 10px; background: var(--gc11-surface-secondary); }
.gc11 .admin-storage-chart-value { color: var(--gc11-text); font-size: .92rem; font-weight: 700; }
.gc11 .admin-storage-type-pill { color: var(--gc11-text); background: var(--gc11-form-surface); border-color: var(--gc11-field-border); }
@media(max-width:1000px) { .gc11 .admin-storage-overview-grid { grid-template-columns: minmax(0,1fr); } }
@media(max-width:600px) { .gc11 .admin-storage-chart-row { grid-template-columns: minmax(0,1fr) auto; } .gc11 .admin-storage-chart-bar { grid-column: 1/-1; grid-row: 2; } }

.gc11 .admin-storage-overview-card > :is(h3,h5) { font: 700 .95rem/1.4 var(--gc11-content-font); margin: 0 0 10px; }

/* Admin tickets: shared section, content card and empty-state spacing. */
.gc11 #admin-support-tickets-section { background: var(--gc11-form-surface); color: var(--gc11-text); border-color: var(--gc11-panel-border); }
.gc11 #admin-support-tickets-section > .admin-shared-config-panel { background: var(--gc11-surface-raised); background-image: none; color: var(--gc11-text); border: 1px solid var(--gc11-panel-border); border-radius: 14px; padding: 14px; box-shadow: none; }
.gc11 #admin-support-ticket-status:empty { display: none; }
.gc11 #admin-support-ticket-list { gap: 14px; }
.gc11 #admin-support-tickets-section .support-ticket-admin-toolbar { margin: 0 0 14px; min-height: 24px; }
.gc11 #admin-support-tickets-section .support-ticket-admin-filter { color: var(--gc11-text-muted); font-size: .88rem; }
.gc11 #admin-support-tickets-section .support-ticket-admin-card { background: var(--gc11-form-surface); color: var(--gc11-text); border-color: var(--gc11-panel-border); border-radius: 14px; padding: 12px 14px; }
.gc11 #admin-support-tickets-section .support-ticket-admin-description { background: var(--gc11-surface-raised); color: var(--gc11-text); border-color: var(--gc11-panel-border); }
.gc11 #admin-support-tickets-section .admin-subapp-kicker-row { margin: 0 0 12px; }
.gc11 #admin-support-tickets-section .admin-subapp-kicker-row .eyebrow { margin: 0; }
.gc11 #admin-support-tickets-section .admin-subapp-title-row { margin: 0; }
