/* Evolved Command universal visual system · Nov 10, 2026.
   Owner-approved: one top navigation, navy hero, warm light content, orange accents.
   Presentation only; never reveal permissions or hidden route content. */
:root {
  --ec-light-paper:#faf9f6;
  --ec-light-panel:#fff;
  --ec-light-line:#e6e9e8;
  --ec-navy:#233641;
  --ec-navy-dark:#1e303b;
  --ec-ink:#263944;
  --ec-muted:#647b89;
  --ec-orange:#f37321;
}
body:has(#app:not(.hidden)) {
  background:var(--ec-light-paper);
  color:var(--ec-ink);
}
/* Staff's ONLY navigation remains the existing permission-built top menu. */
body.internal-nav-active #internal-topnav {
  background:#fff;
  color:var(--ec-ink);
  border-bottom:1px solid var(--ec-light-line);
  box-shadow:0 2px 16px rgba(20,42,55,.05);
}
body.internal-nav-active #internal-topnav .ec-nav-brand,
body.internal-nav-active #internal-topnav .ec-nav-account-summary,
body.internal-nav-active #internal-topnav .ec-nav-link,
body.internal-nav-active #internal-topnav .ec-nav-menu > summary,
body.internal-nav-active #internal-topnav .ec-breadcrumb-link { color:var(--ec-ink); }
body.internal-nav-active #internal-topnav .ec-nav-brand span {color:var(--ec-orange);}
body.internal-nav-active #internal-topnav .ec-nav-link:hover,
body.internal-nav-active #internal-topnav .ec-nav-link.is-current,
body.internal-nav-active #internal-topnav .ec-nav-menu > summary:hover,
body.internal-nav-active #internal-topnav .ec-nav-menu[open] > summary {
  background:#fff1e7;color:var(--ec-navy);
}
body.internal-nav-active #internal-topnav .ec-nav-dropdown {
  background:#fff; border:1px solid var(--ec-light-line);
  box-shadow:0 14px 35px rgba(24,43,54,.11);
}
body.internal-nav-active #internal-topnav .ec-nav-item { color:var(--ec-ink); }
body.internal-nav-active #internal-topnav .ec-nav-item:hover,
body.internal-nav-active #internal-topnav .ec-nav-item.is-current {
  color:var(--ec-navy-dark);background:#fff1e7;
}
body.internal-nav-active #internal-topnav .ec-nav-item.is-muted {color:#8696a1;}
body.internal-nav-active #internal-topnav .ec-nav-person-meta,
body.internal-nav-active #internal-topnav .ec-nav-group-label,
body.internal-nav-active #internal-topnav .ec-nav-account-role,
body.internal-nav-active #internal-topnav .ec-breadcrumb {color:#758893;}
body.internal-nav-active #internal-topnav .ec-nav-context {border-top-color:#f0eee9;}
body.internal-nav-active #internal-topnav .ec-nav-search {
  background:#f9faf9;border-color:#dce3e6;color:var(--ec-ink);
}
body.internal-nav-active #internal-topnav .ec-nav-avatar {background:#b6531d;color:#fff;}
body.internal-nav-active #internal-topnav .ec-client-module {
  border-color:#e4e8e9;color:#4b6170;background:#fff;
}
body.internal-nav-active #internal-topnav .ec-client-module.is-active {
  background:#263b47;color:#fff;border-color:#263b47;
}
body.internal-nav-active #internal-topnav .ec-client-module:hover:not(.is-active) {
  background:#fff1e7;border-color:#f0d0b7;
}
/* The executive page has its own verified full-bleed hero. */
#app.ec-executive-review #ec-unified-page-hero {display:none!important;}
#app:not(.ec-executive-review) .main-content {
  padding:0 0 72px!important;min-width:0;
  background:var(--ec-light-paper);
}
#app:not(.ec-executive-review) .ec-unified-page-hero {
  box-sizing:border-box;
  width:100%;margin:0 0 20px;padding:30px clamp(22px,4vw,72px) 36px;
  background:linear-gradient(112deg,#20303b 0%,#233641 55%,#263d47 100%);
  color:#f5f8fa;border-bottom:1px solid rgba(255,255,255,.09);
  box-shadow:inset 0 -1px rgba(255,255,255,.05);
}
#app:not(.ec-executive-review) .ec-unified-page-hero.hidden {display:none!important;}
.ec-unified-hero-inner {
  max-width:1260px;min-height:158px;margin:auto;
  display:grid;grid-template-columns:190px minmax(0,1fr) 190px;
  align-items:center;gap:24px;
}
.ec-unified-hero-logo {width:190px;max-width:100%;height:auto;object-fit:contain;}
.ec-unified-hero-copy {text-align:center;min-width:0;}
.ec-unified-hero-eyebrow {
  margin:0 0 8px;color:#b5c4cd;letter-spacing:.17em;
  text-transform:uppercase;font-weight:900;font-size:10px;
}
.ec-unified-hero-copy h1 {
  max-width:850px;margin:0 auto;color:#f8fbfd;
  font-size:clamp(28px,3vw,46px);line-height:1.11;
  letter-spacing:-.045em;font-weight:820;text-wrap:balance;
}
.ec-unified-hero-copy h1::after {
  content:"";display:block;width:37px;height:2px;
  background:var(--ec-orange);margin:14px auto 10px;
}
.ec-unified-hero-tagline {margin:0;font-size:16px;color:#e0e6e8;line-height:1.4;}
.ec-unified-hero-tagline strong {color:#ff822b;font-weight:800;}
.ec-unified-hero-meta {
  display:grid;justify-items:end;gap:6px;text-align:right;
  color:#aebec8;
}
.ec-unified-hero-meta span {
  color:#f1a470;font-size:10px;letter-spacing:.085em;
  font-weight:900;text-transform:uppercase;
}
.ec-unified-hero-meta small {font-size:11px;line-height:1.5;}
/* All content follows the same centered, spacious executive grid. */
#app:not(.ec-executive-review) .workspace-page,
#app:not(.ec-executive-review) #client-status-strip,
#app:not(.ec-executive-review) #client-view-toolbar {
  box-sizing:border-box;
  width:100%;max-width:1340px;
  margin-left:auto;margin-right:auto;
  padding-left:clamp(20px,2.7vw,34px);
  padding-right:clamp(20px,2.7vw,34px);
}
#app:not(.ec-executive-review) .workspace-page.hidden {display:none!important;}
#app:not(.ec-executive-review) #portfolio-page > .portfolio-heading {display:none!important;}
#app:not(.ec-executive-review) .workspace-page {padding-top:10px;}
#app:not(.ec-executive-review) .section-heading,
#app:not(.ec-executive-review) .executive-heading {
  align-items:flex-end;gap:22px;
  margin:14px 0 18px;
}
#app:not(.ec-executive-review) .section-heading h2,
#app:not(.ec-executive-review) .executive-heading h2 {
  color:var(--ec-ink);font-size:clamp(21px,2.3vw,27px);letter-spacing:-.035em;
}
#app:not(.ec-executive-review) .section-heading .eyebrow,
#app:not(.ec-executive-review) .portfolio-subsection-label .eyebrow,
#app:not(.ec-executive-review) .panel-heading .eyebrow,
#app:not(.ec-executive-review) .section-label {
  color:#527082;letter-spacing:.11em;text-transform:uppercase;font-weight:900;
}
#app:not(.ec-executive-review) .muted,
#app:not(.ec-executive-review) .section-heading > p {
  color:var(--ec-muted);line-height:1.58;
}
#app:not(.ec-executive-review) .kpi-grid,
#app:not(.ec-executive-review) .channel-grid,
#app:not(.ec-executive-review) .executive-summary-cards {gap:13px;}
#app:not(.ec-executive-review) .panel,
#app:not(.ec-executive-review) .kpi-card,
#app:not(.ec-executive-review) .channel-card,
#app:not(.ec-executive-review) .report-template-card,
#app:not(.ec-executive-review) .report-library-bar,
#app:not(.ec-executive-review) .portfolio-manager-section,
#app:not(.ec-executive-review) .executive-summary-cards article,
#app:not(.ec-executive-review) .executive-lifespan-cards article {
  background:#fff;border:1px solid var(--ec-light-line);
  border-radius:14px;box-shadow:0 3px 14px rgba(22,48,60,.035);
  color:var(--ec-ink);
}
#app:not(.ec-executive-review) .kpi-card {
  min-height:137px;padding:19px 20px;
  border-top:3px solid transparent;
}
#app:not(.ec-executive-review) .kpi-card:first-child {border-top-color:var(--ec-orange);}
#app:not(.ec-executive-review) .kpi-card > span,
#app:not(.ec-executive-review) .executive-summary-cards span,
#app:not(.ec-executive-review) .revenue-kpi-card > span {
  font-size:10px;letter-spacing:.095em;text-transform:uppercase;font-weight:900;color:#5c7586;
}
#app:not(.ec-executive-review) .kpi-card strong,
#app:not(.ec-executive-review) .executive-summary-cards strong {
  color:var(--ec-ink);
  font-size:clamp(25px,2.5vw,35px);line-height:1.08;
}
#app:not(.ec-executive-review) .kpi-card small,
#app:not(.ec-executive-review) .executive-summary-cards small {
  color:#7a8c98;font-size:10px;line-height:1.5;
}
#app:not(.ec-executive-review) .executive-summary-cards article:first-child {
  border-top:3px solid var(--ec-orange);
}
#app:not(.ec-executive-review) .panel {padding:clamp(17px,2vw,25px);}
#app:not(.ec-executive-review) .panel-heading h2,
#app:not(.ec-executive-review) .panel-heading h3 {
  color:var(--ec-ink);letter-spacing:-.025em;
}
#app:not(.ec-executive-review) .panel-heading {gap:18px;}
#app:not(.ec-executive-review) .portfolio-revenue-hero {
  background:#fff;border:1px solid var(--ec-light-line);
  color:var(--ec-ink);
  box-shadow:0 4px 18px rgba(21,45,58,.045);
  border-radius:16px;padding:clamp(19px,2.7vw,29px);
}
#app:not(.ec-executive-review) .portfolio-revenue-hero::after {display:none;}
#app:not(.ec-executive-review) .revenue-hero-heading h3 {color:var(--ec-ink);}
#app:not(.ec-executive-review) .revenue-hero-heading .eyebrow,
#app:not(.ec-executive-review) .revenue-source-note {color:#688292;}
#app:not(.ec-executive-review) .revenue-kpi-grid {gap:13px;}
#app:not(.ec-executive-review) .revenue-kpi-card {
  border:1px solid var(--ec-light-line);border-radius:13px;
  background:#fbfbfa;backdrop-filter:none;
  min-height:129px;
}
#app:not(.ec-executive-review) .revenue-kpi-card.revenue-kpi-primary {
  border-color:#f0ceba;background:#fff6ef;
}
#app:not(.ec-executive-review) .revenue-kpi-card strong,
#app:not(.ec-executive-review) .revenue-kpi-card.revenue-kpi-primary strong {
  color:var(--ec-ink);
}
#app:not(.ec-executive-review) .revenue-kpi-card.revenue-kpi-primary strong {color:#cb631f;}
#app:not(.ec-executive-review) .revenue-kpi-card small {color:#7e929d;}
#app:not(.ec-executive-review) .manager-revenue-card {background:#fafaf9;border-color:var(--ec-light-line);}
#app:not(.ec-executive-review) .manager-revenue-card.primary {background:#fff5ed;border-color:#f4d7c4;}
#app:not(.ec-executive-review) .manager-revenue-mix {
  background:#fafaf8;border:1px solid var(--ec-light-line);
}
#app:not(.ec-executive-review) .portfolio-manager-section {
  background:#fff;box-shadow:0 4px 16px rgba(22,46,57,.035);
}
#app:not(.ec-executive-review) .manager-client-row,
#app:not(.ec-executive-review) .portfolio-client-row,
#app:not(.ec-executive-review) .client-access-row {background:#fff;border-color:#ecece8;}
#app:not(.ec-executive-review) .manager-client-header,
#app:not(.ec-executive-review) .portfolio-client-header,
#app:not(.ec-executive-review) .client-access-header {
  background:#f5f5f2;color:#617987;
}
#app:not(.ec-executive-review) .status-strip {
  background:#fff;border:1px solid var(--ec-light-line);
  border-radius:12px;color:#607888;
}
#app:not(.ec-executive-review) .view-toolbar {margin-top:14px;margin-bottom:16px;}
#app:not(.ec-executive-review) .segmented {background:#ebece9;border:1px solid #e3e6e5;}
#app:not(.ec-executive-review) .segment.active {
  background:#fff;color:var(--ec-navy);
}
#app:not(.ec-executive-review) .report-template-card.active {
  background:#fff6ef;border:1px solid #f0ccb4;
  box-shadow:inset 3px 0 var(--ec-orange);
}
#app:not(.ec-executive-review) .report-template-card:hover,
#app:not(.ec-executive-review) .portfolio-manager-card:hover {
  border-color:#dfbca7;box-shadow:0 4px 14px rgba(26,46,57,.055);
}
#app:not(.ec-executive-review) .report-action-button.primary {
  background:var(--ec-orange);color:#fff;border-color:var(--ec-orange);
}
#app:not(.ec-executive-review) .report-action-button:focus-visible,
#app:not(.ec-executive-review) button:focus-visible,
body.internal-nav-active #internal-topnav button:focus-visible,
body.internal-nav-active #internal-topnav summary:focus-visible,
#app:not(.ec-executive-review) input:focus-visible,
#app:not(.ec-executive-review) select:focus-visible {
  outline:2px solid var(--ec-orange);outline-offset:3px;
}
#app:not(.ec-executive-review) .report-library-bar {margin-top:16px;padding:17px 20px;}
#app:not(.ec-executive-review) .report-builder-panel,
#app:not(.ec-executive-review) .report-preview-panel {background:#fff;}
#app:not(.ec-executive-review) .keyword-intelligence-table thead,
#app:not(.ec-executive-review) .organic-parent-heading {
  background:#f5f5f2;color:#597180;
}
#app:not(.ec-executive-review) #inventory-page .kpi-card {border-top-color:#eac9b1;}
/* External client portals retain only their permitted menu, now top-aligned. */
body:not(.internal-nav-active) #app:not(.hidden) {
  display:flex;flex-direction:column;min-width:0;
}
body:not(.internal-nav-active) #app:not(.hidden) .sidebar {
  box-sizing:border-box;
  width:100%;height:auto;min-height:0;position:sticky;top:0;z-index:1200;
  padding:10px clamp(16px,2vw,28px);
  display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;
  background:#fff;border-bottom:1px solid var(--ec-light-line);
  box-shadow:0 2px 14px rgba(25,46,57,.045);color:var(--ec-ink);
}
body:not(.internal-nav-active) #app:not(.hidden) .brand-block {padding:0;display:flex;gap:12px;align-items:center;}
body:not(.internal-nav-active) #app:not(.hidden) .sidebar-logo {width:145px;height:auto;}
body:not(.internal-nav-active) #app:not(.hidden) .nav-list {
  flex:1 1 auto;display:flex;gap:3px;align-items:center;
  overflow-x:auto;padding:4px 0;
}
body:not(.internal-nav-active) #app:not(.hidden) .nav-item {
  width:auto;min-width:max-content;text-align:center;
  padding:9px 11px;color:#4d6370;border-radius:8px;
}
body:not(.internal-nav-active) #app:not(.hidden) .nav-item:hover {
  color:var(--ec-navy);background:#fff1e7;
}
body:not(.internal-nav-active) #app:not(.hidden) .nav-item.active {
  background:#fff1e7;color:var(--ec-navy);
  box-shadow:inset 0 -2px var(--ec-orange);
}
body:not(.internal-nav-active) #app:not(.hidden) .sidebar-bottom {
  margin:0;padding:0;border:0;display:flex;align-items:center;gap:12px;
}
body:not(.internal-nav-active) #app:not(.hidden) .shadow-note {
  display:none; /* Safety note remains in content panels, not a duplicate nav element. */
}
body:not(.internal-nav-active) #app:not(.hidden) .sidebar-bottom .text-button {color:#995221;}
body:not(.internal-nav-active) #app:not(.hidden) .topbar {
  box-sizing:border-box;max-width:1340px;width:100%;
  padding:14px clamp(20px,2.7vw,34px);
  margin:0 auto;align-items:center;
  border-bottom:1px solid #eeece8;
}
body:not(.internal-nav-active) #app:not(.hidden) .topbar h1 {
  font-size:20px;color:var(--ec-ink);
}
body:not(.internal-nav-active) #app:not(.hidden) .user-chip {
  border-color:#e5e9e7;color:var(--ec-ink);
}
/* Auth surface carries the same light, branded visual language. */
.signin-shell {
  background:linear-gradient(155deg,#fbfaf7 0%,#f7f4ef 65%,#f3f4f2 100%);
}
.signin-card {
  border:1px solid var(--ec-light-line);border-top:4px solid var(--ec-orange);
  box-shadow:0 22px 54px rgba(29,52,62,.09);border-radius:18px;
}
.signin-card h1 {color:var(--ec-ink);}
@media (max-width:1100px) {
  .ec-unified-hero-inner {grid-template-columns:150px minmax(0,1fr);gap:15px;}
  .ec-unified-hero-logo {width:150px;}
  .ec-unified-hero-meta {grid-column:1/-1;text-align:center;justify-items:center;}
  #app:not(.ec-executive-review) .content-grid {grid-template-columns:1fr;}
}
@media (max-width:700px) {
  #app:not(.ec-executive-review) .ec-unified-page-hero {padding:25px 18px 29px;}
  .ec-unified-hero-inner {display:flex;flex-direction:column;gap:12px;min-height:0;}
  .ec-unified-hero-logo {width:155px;}
  .ec-unified-hero-copy h1 {font-size:29px;}
  .ec-unified-hero-tagline {font-size:14px;}
  .ec-unified-hero-meta small {font-size:10px;}
  #app:not(.ec-executive-review) .workspace-page,
  #app:not(.ec-executive-review) #client-status-strip,
  #app:not(.ec-executive-review) #client-view-toolbar {padding-left:17px;padding-right:17px;}
  #app:not(.ec-executive-review) .section-heading {align-items:flex-start;flex-direction:column;gap:6px;}
  #app:not(.ec-executive-review) .section-heading > p {text-align:left;}
  #app:not(.ec-executive-review) .kpi-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  #app:not(.ec-executive-review) .revenue-kpi-grid {grid-template-columns:1fr;}
  body:not(.internal-nav-active) #app:not(.hidden) .sidebar {flex-direction:column;align-items:stretch;}
  body:not(.internal-nav-active) #app:not(.hidden) .nav-list {flex:1 1 100%;}
  body:not(.internal-nav-active) #app:not(.hidden) .sidebar-bottom {align-self:flex-end;}
}
@media (max-width:420px) {
  #app:not(.ec-executive-review) .kpi-grid {grid-template-columns:1fr;}
  #app:not(.ec-executive-review) .panel-heading {flex-direction:column;align-items:flex-start;}
}


/* Nov 12 readability audit: neutral paper cards must not inherit dark-theme text.
   Apply to internal, non-executive workspaces, preserving dark branded hero. */
#app:not(.ec-executive-review) .manager-client-row:not(.manager-client-header),
#app:not(.ec-executive-review) .portfolio-client-row,
#app:not(.ec-executive-review) .manager-client-row > span,
#app:not(.ec-executive-review) .manager-client-commission strong,
#app:not(.ec-executive-review) .manager-client-name strong,
#app:not(.ec-executive-review) .portfolio-client-name strong,
#app:not(.ec-executive-review) .manager-client-link {
  color:var(--ec-ink);
}
#app:not(.ec-executive-review) .manager-client-name span,
#app:not(.ec-executive-review) .portfolio-client-name span,
#app:not(.ec-executive-review) .manager-client-commission small,
#app:not(.ec-executive-review) .revenue-only-chip,
#app:not(.ec-executive-review) .executive-kpi-row small {
  color:#536b7b;
}
#app:not(.ec-executive-review) .manager-client-ec-revenue,
#app:not(.ec-executive-review) .manager-ar-link {
  color:#a54e17;
}
#app:not(.ec-executive-review) .manager-client-row:not(.manager-client-header):hover {
  background:#fff8f1;
}
#app:not(.ec-executive-review) .manager-client-header {
  color:#4d6675;
}
#app:not(.ec-executive-review) .finance-review-label {
  display:block;margin-top:3px;color:#96500b;font-size:9px;line-height:1.4;
  font-weight:750;white-space:normal;
}
#app:not(.ec-executive-review) .manager-client-table-wrap {
  background:#fff;border-color:#e1e6e9;
  scrollbar-color:#b3c0c7 #f5f7f7;
}

/* Research upload: restore adequate contrast on inherited dark controls. */
#app:not(.ec-executive-review) #report-upload-panel,
#app:not(.ec-executive-review) #report-upload-panel .report-upload-history {
  color:var(--ec-ink);
}
#app:not(.ec-executive-review) #report-upload-panel .report-upload-heading h2,
#app:not(.ec-executive-review) #report-upload-panel .report-upload-history-heading strong,
#app:not(.ec-executive-review) #report-upload-panel .report-upload-history-row strong {
  color:var(--ec-ink);
}
#app:not(.ec-executive-review) #report-upload-panel .report-upload-field > span,
#app:not(.ec-executive-review) #report-upload-panel .report-upload-history-heading span,
#app:not(.ec-executive-review) #report-upload-panel .report-upload-dropzone span,
#app:not(.ec-executive-review) #report-upload-panel .report-upload-status {
  color:#526b7a;
}
#app:not(.ec-executive-review) #report-upload-panel .report-upload-field input,
#app:not(.ec-executive-review) #report-upload-panel .report-upload-field select {
  background:#fff;color:var(--ec-ink);border-color:#ccd8df;
  color-scheme:light;
}
#app:not(.ec-executive-review) #report-upload-panel .report-upload-field input::placeholder {
  color:#647988;opacity:1;
}
#app:not(.ec-executive-review) #report-upload-panel .report-upload-dropzone {
  background:#f7fafb;border:2px dashed #aabdc8;color:var(--ec-ink);
}
#app:not(.ec-executive-review) #report-upload-panel .report-upload-dropzone strong {
  color:var(--ec-ink);
}
#app:not(.ec-executive-review) #report-upload-panel .report-upload-dropzone.is-dragging {
  background:#fff5ed;border-color:var(--ec-orange);
}
#app:not(.ec-executive-review) #report-upload-panel .report-upload-history-row {
  color:var(--ec-ink);background:#fbfcfd;border-color:#e3e8eb;
}
#app:not(.ec-executive-review) #report-upload-panel .report-upload-history {
  border-color:var(--ec-light-line);
}
/* Avoid apparently missing links in executive/retention cards. */
#app .executive-retention-panel a.secondary-button:not(.hidden) {
  color:#425e6e;border:1px solid #d2dde4;background:#fff;
}
#app .executive-retention-panel a.secondary-button:not(.hidden):focus-visible {
  outline:2px solid var(--ec-orange);outline-offset:3px;
}

#app:not(.ec-executive-review) .manager-client-contract-base {
  display:grid;gap:3px;color:var(--ec-ink);
}
#app:not(.ec-executive-review) .finance-adjustment-label {
  color:#96500b;font-size:9px;font-weight:750;line-height:1.35;
}

#app .executive-history-context {
  color:#536b7b;font-size:11px;line-height:1.45;margin:10px 4px 0;
}




/* CROSS-PAGE LIGHT SURFACE LEGIBILITY · 2026-11-13.
   The light Evolved Command workspace previously inherited foreground colors
   from the original dark .director-theme tables and form controls. All rules
   are presentation-only and scoped to authorized non-executive workspaces,
   preserving the navy hero, executive page and the client/role boundaries. */
#app:not(.ec-executive-review) {
  --ec-readable-ink:#263944;
  --ec-readable-body:#354e5c;
  --ec-readable-muted:#536b7b;
  --ec-readable-paper:#ffffff;
  --ec-readable-soft:#f8fafb;
  --ec-readable-line:#dce5ea;
}
#app:not(.ec-executive-review) .workspace-page {
  color:var(--ec-readable-ink);
}
body.internal-nav-active #internal-topnav .ec-nav-item.is-muted,
body.internal-nav-active #internal-topnav .ec-nav-item.is-muted:hover,
body.internal-nav-active #internal-topnav .ec-nav-person-meta,
body.internal-nav-active #internal-topnav .ec-nav-group-label,
body.internal-nav-active #internal-topnav .ec-nav-account-role,
body.internal-nav-active #internal-topnav .ec-breadcrumb,
body.internal-nav-active #internal-topnav .ec-nav-signout {
  color:#536b7b;
}
body.internal-nav-active #internal-topnav .ec-nav-account-name {
  color:#263944;
}
body.internal-nav-active #internal-topnav .ec-nav-signout {
  background:#fff;
  border:1px solid #cdd9e0;
}
body.internal-nav-active #internal-topnav .ec-nav-search::placeholder {
  color:#536b7b;
  opacity:1;
}
#app:not(.ec-executive-review) .workspace-page .kpi-card small,
#app:not(.ec-executive-review) .workspace-page .revenue-kpi-card small,
#app:not(.ec-executive-review) .workspace-page .executive-summary-cards small,
#app:not(.ec-executive-review) .workspace-page .revenue-source-note,
#app:not(.ec-executive-review) .workspace-page .portfolio-trend-legend,
#app:not(.ec-executive-review) .workspace-page .portfolio-system-status > summary small,
#app:not(.ec-executive-review) .workspace-page .portfolio-access-note,
#app:not(.ec-executive-review) .workspace-page .portfolio-access-row span {
  color:var(--ec-readable-muted);
}
#app:not(.ec-executive-review) .workspace-page .source-row strong,
#app:not(.ec-executive-review) .workspace-page .portfolio-access-row strong,
#app:not(.ec-executive-review) .workspace-page .organization-sync-heading h3,
#app:not(.ec-executive-review) .workspace-page .report-template-card strong,
#app:not(.ec-executive-review) .workspace-page .channel-card h3 {
  color:var(--ec-readable-ink);
}
#app:not(.ec-executive-review) .workspace-page .source-row div span,
#app:not(.ec-executive-review) .workspace-page .access-panel p:not(.eyebrow),
#app:not(.ec-executive-review) .workspace-page .insight-item p,
#app:not(.ec-executive-review) .workspace-page .insight-item small,
#app:not(.ec-executive-review) .workspace-page .report-save-meta,
#app:not(.ec-executive-review) .workspace-page .empty-chart {
  color:var(--ec-readable-muted);
}
/* Data state is unchanged. Never make "Not applicable" appear Fresh. */
#app:not(.ec-executive-review) .workspace-page .source-state.good,
#app:not(.ec-executive-review) .workspace-page .detail-chip.available,
#app:not(.ec-executive-review) .workspace-page .data-health-badge.good {
  color:#195d42;background:#e6f5ed;border:1px solid #aedcc3;
}
#app:not(.ec-executive-review) .workspace-page .source-state.attention,
#app:not(.ec-executive-review) .workspace-page .data-health-badge.attention {
  color:#86440f;background:#fff2e5;border:1px solid #f0c7a1;
}
#app:not(.ec-executive-review) .workspace-page .source-state.bad,
#app:not(.ec-executive-review) .workspace-page .data-health-badge.degraded {
  color:#8c3537;background:#ffeded;border:1px solid #edc2c3;
}
#app:not(.ec-executive-review) .workspace-page .source-state.neutral {
  color:#465c6b;background:#eef2f4;border:1px solid #cdd9e0;
}
/* Tables and pinned first columns must share the same solid light surface.
   The old dark CSS set near-white values on rows that the new theme turned
   white, including Search, Products, Keywords and report previews. */
#app:not(.ec-executive-review) .workspace-page :is(
  .campaign-table,.product-table,.report-preview-table,.keyword-intelligence-table,
  .core-keyword-table,.organic-parent-table
) {
  color:var(--ec-readable-body);
  background:#fff;
}
#app:not(.ec-executive-review) .workspace-page :is(
  .campaign-table,.product-table,.report-preview-table,.keyword-intelligence-table,
  .core-keyword-table,.organic-parent-table
) th {
  background:#f2f5f5;
  color:#465c6b;
  border-color:#dce5ea;
}
#app:not(.ec-executive-review) .workspace-page :is(
  .campaign-table,.product-table,.report-preview-table,.keyword-intelligence-table,
  .core-keyword-table,.organic-parent-table
) td {
  background:#fff;
  color:var(--ec-readable-body);
  border-color:#e5ecef;
}
#app:not(.ec-executive-review) .workspace-page :is(
  .campaign-table,.product-table,.report-preview-table
) :is(th:first-child,td:first-child) {
  background:#fff;
  color:var(--ec-readable-body);
  box-shadow:1px 0 #e5ecef;
}
#app:not(.ec-executive-review) .workspace-page :is(
  .campaign-table,.product-table,.report-preview-table
) th:first-child {
  background:#f2f5f5;
  color:#465c6b;
}
#app:not(.ec-executive-review) .workspace-page :is(
  .campaign-table,.product-table,.report-preview-table
) tbody tr:hover td {
  background:#fff8f1;
}
#app:not(.ec-executive-review) .workspace-page .campaign-table th.sortable button,
#app:not(.ec-executive-review) .workspace-page .campaign-table th.sortable button span {
  color:#465c6b;
}
#app:not(.ec-executive-review) .workspace-page .campaign-table th.sortable button:hover {
  color:#263944;background:#ffefe3;
}
#app:not(.ec-executive-review) .workspace-page .campaign-name-cell strong,
#app:not(.ec-executive-review) .workspace-page .client-access-identity strong,
#app:not(.ec-executive-review) .workspace-page .client-access-role,
#app:not(.ec-executive-review) .workspace-page .organic-parent-stats span strong {
  color:var(--ec-readable-ink);
}
#app:not(.ec-executive-review) .workspace-page .campaign-name-cell :is(span,small),
#app:not(.ec-executive-review) .workspace-page .client-access-note,
#app:not(.ec-executive-review) .workspace-page .client-access-identity span,
#app:not(.ec-executive-review) .workspace-page .client-access-added {
  color:var(--ec-readable-muted);
}
#app:not(.ec-executive-review) .workspace-page .source-badge {
  color:#86440f;background:#fff2e5;border:1px solid #f0c7a1;
}
/* Light forms and control states; no global button/checkbox reset. */
#app:not(.ec-executive-review) .workspace-page :is(
  .campaign-search-wrap input,.campaign-source-wrap select,.report-field input,
  .report-field select,.report-library-controls select,.keyword-snapshot-select select,
  .core-keyword-form input,.goal-editor input,.client-access-form input,
  .client-access-form select
) {
  background:#fff;color:#263944;border:1px solid #cdd9e0;color-scheme:light;
}
#app:not(.ec-executive-review) .workspace-page :is(
  .campaign-search-wrap input,.report-field input,.core-keyword-form input,
  .client-access-form input
)::placeholder {
  color:#536b7b;opacity:1;
}
#app:not(.ec-executive-review) .workspace-page :is(
  .report-field input:disabled,.report-field select:disabled,
  .campaign-search-wrap input:disabled,.client-access-form input:disabled
) {
  opacity:1;color:#536b7b;background:#eef2f4;
}
#app:not(.ec-executive-review) .workspace-page :is(
  .secondary-button,.report-action-button,.campaign-clear,
  .goal-edit-button,.goal-cancel-button
) {
  color:#354e5c;background:#fff;border:1px solid #cdd9e0;
}
#app:not(.ec-executive-review) .workspace-page :is(
  .secondary-button:hover,.report-action-button:hover:not(:disabled),
  .campaign-clear:hover,.goal-edit-button:hover,.goal-cancel-button:hover
) {
  color:#263944;background:#fff1e7;border-color:#dca77f;
}
#app:not(.ec-executive-review) .workspace-page :is(
  .report-action-button.primary,.goal-save-button
) {
  color:#fff;background:#a54b14;border-color:#a54b14;
}
#app:not(.ec-executive-review) .workspace-page .report-action-button.danger {
  background:#fff8f8;color:#8c3537;border-color:#edc2c3;
}
#app:not(.ec-executive-review) .workspace-page .goal-editor label > span,
#app:not(.ec-executive-review) .workspace-page .goal-status {
  color:#536b7b;
}
#app:not(.ec-executive-review) .workspace-page :is(
  .campaign-filter,.report-column-chip span
) {
  color:#465c6b;background:#f8fafb;border:1px solid #dce5ea;
}
#app:not(.ec-executive-review) .workspace-page :is(
  .campaign-filter.active,.report-column-chip input:checked + span,
  .report-template-card.active
) {
  color:#86440f;background:#fff2e5;border-color:#f0c7a1;
}
#app:not(.ec-executive-review) .workspace-page :is(
  .campaign-filter:hover,.report-column-chip span:hover
) {
  color:#263944;background:#fff1e7;border-color:#dca77f;
}
/* On these specific nested cards the original dark renderer uses very pale
   captions while their parent is already a light panel. Pair background and
   foreground explicitly instead of applying a destructive global text reset. */
#app:not(.ec-executive-review) .workspace-page :is(
  .insight-item,.insight-item.watch,.insight-item.good,.insight-item.neutral,
  .keyword-intelligence-summary article,.keyword-rank-panel,
  .keyword-opportunity-panel,.organic-visibility-summary article,
  .organic-parent-section,.client-access-primary,.client-access-row,
  .keyword-client-snapshot,.core-keyword-panel,.keyword-client-empty,
  .organic-visibility-panel
) {
  background:#f8fafb;color:#263944;border-color:#dce5ea;
}
#app:not(.ec-executive-review) .workspace-page :is(
  .keyword-intelligence-summary span,.keyword-intelligence-summary small,
  .keyword-section-heading span,.keyword-rank-row span,
  .keyword-snapshot-select span,.core-keyword-form label > span,
  .organic-visibility-summary span,.organic-visibility-summary small,
  .organic-parent-heading span,.organic-parent-section > small
) {
  color:#536b7b;
}
#app:not(.ec-executive-review) .workspace-page :is(
  .keyword-intelligence-summary strong,.keyword-section-heading strong,
  .organic-visibility-summary strong,.organic-parent-heading strong,
  .insight-item strong,.client-access-primary strong
) {
  color:#263944;
}
#app:not(.ec-executive-review) .workspace-page .client-access-header {
  background:#f2f5f5;color:#465c6b;
}
#app:not(.ec-executive-review) .workspace-page .report-library-bar,
#app:not(.ec-executive-review) .workspace-page .report-builder-panel,
#app:not(.ec-executive-review) .workspace-page .report-preview-panel {
  background:#fff;color:#263944;
}
#app:not(.ec-executive-review) .workspace-page .portfolio-client-list .manager-client-table-wrap,
#app:not(.ec-executive-review) .workspace-page .portfolio-client-list .manager-client-row {
  background:#fff;color:#354e5c;border-color:#dce5ea;
}
#app:not(.ec-executive-review) .workspace-page .portfolio-client-list .manager-client-header {
  background:#f2f5f5;color:#465c6b;
}
#app:not(.ec-executive-review) .workspace-page .portfolio-client-list .manager-client-name strong {
  color:#263944;
}
#app:not(.ec-executive-review) .workspace-page .portfolio-client-list .manager-client-name span {
  color:#536b7b;
}

/* REPORT HEALTH READABILITY AUDIT · Nov 12, 2026.
   Legacy dark-only Ads report tables/candidate cards inherited pale text on
   white staff surfaces. Scope to Health; retain existing status semantics. */
#app:not(.ec-executive-review) #report-health-page .report-health-summary-card {
  background:#fff;
  border:1px solid #dce5ea;
}
#app:not(.ec-executive-review) #report-health-page .report-health-summary-card > span,
#app:not(.ec-executive-review) #report-health-page .report-health-summary-card > small,
#app:not(.ec-executive-review) #report-health-page .report-health-subheading span,
#app:not(.ec-executive-review) #report-health-page .report-health-footnote,
#app:not(.ec-executive-review) #report-health-page .report-health-empty,
#app:not(.ec-executive-review) #report-health-page .report-health-empty-row {
  color:#536b7b;
}
#app:not(.ec-executive-review) #report-health-page .report-health-summary-card > strong {
  color:#263944;
}
#app:not(.ec-executive-review) #report-health-page .report-health-table-wrap {
  background:#fff;
  border-color:#dae4e9;
}
#app:not(.ec-executive-review) #report-health-page .report-health-row {
  background:#fff;
  color:#354e5c;
  border-top:1px solid #e7edf0;
  font-size:12px;
}
#app:not(.ec-executive-review) #report-health-page .report-health-row-head {
  background:#344d59;
  color:#fff;
  border-top:0;
  font-size:10px;
}
#app:not(.ec-executive-review) #report-health-page .report-health-name strong {
  color:#263944;
  font-weight:750;
}
#app:not(.ec-executive-review) #report-health-page .report-health-name small,
#app:not(.ec-executive-review) #report-health-page .report-health-candidate span,
#app:not(.ec-executive-review) #report-health-page .report-health-catalog > summary small,
#app:not(.ec-executive-review) #report-health-page .report-health-catalog > summary > span:last-child {
  color:#536b7b;
}
#app:not(.ec-executive-review) #report-health-page .report-health-diagnostic {
  color:#8b3f0b;
}
#app:not(.ec-executive-review) #report-health-page .report-health-catalog {
  background:#f8fafb;
  border:1px solid #dce5ea;
}
#app:not(.ec-executive-review) #report-health-page .report-health-catalog > summary strong,
#app:not(.ec-executive-review) #report-health-page .report-health-candidate strong {
  color:#263944;
}
#app:not(.ec-executive-review) #report-health-page .report-health-candidate {
  background:#fff;
  border:1px solid #dce5ea;
}
#app:not(.ec-executive-review) #report-health-page .report-health-row .source-state,
#app:not(.ec-executive-review) #report-health-page .report-health-candidate .source-state {
  font-weight:800;
  font-size:11px;
  font-style:normal;
  opacity:1;
}
#app:not(.ec-executive-review) #report-health-page .source-state[data-status="FRESH"] {
  color:#195d42;
  background:#e6f5ed;
  border:1px solid #aedcc3;
}
#app:not(.ec-executive-review) #report-health-page .source-state[data-status="RETRYING"],
#app:not(.ec-executive-review) #report-health-page .source-state[data-status="WAITING_ON_AMAZON"] {
  color:#86440f;
  background:#fff2e5;
  border:1px solid #f0c7a1;
}
#app:not(.ec-executive-review) #report-health-page .source-state[data-status="PROCESSING"] {
  color:#205479;
  background:#eaf4fc;
  border:1px solid #c5dcef;
}
#app:not(.ec-executive-review) #report-health-page .source-state[data-status="STALE"],
#app:not(.ec-executive-review) #report-health-page .source-state[data-status="FAILED"] {
  color:#8c3537;
  background:#ffeded;
  border:1px solid #edc2c3;
}
#app:not(.ec-executive-review) #report-health-page .source-state[data-status="NOT_ENABLED"],
#app:not(.ec-executive-review) #report-health-page .source-state[data-status="NOT_APPLICABLE"] {
  color:#465c6b;
  background:#eef2f4;
  border:1px solid #cdd9e0;
}

/* ONBOARDING READABILITY HOTFIX · 2026-11-12.
   The legacy dark onboarding cards were 42%-opaque navy on a LIGHT page.
   Their old muted text and readiness colors failed legibility. This patch
   changes presentation ONLY, scoped to onboarding. No status/action/role logic. */
#app:not(.ec-executive-review) #onboarding-page .onboarding-client-list {
  gap:12px;
}
#app:not(.ec-executive-review) #onboarding-page .onboarding-client-row {
  grid-template-columns:minmax(180px,1.5fr) minmax(95px,.68fr) minmax(150px,1fr) minmax(165px,1fr) minmax(175px,1.14fr);
  gap:18px;
  padding:18px 20px;
  background:#fff;
  color:#263944;
  border:1px solid #dce5ea;
  border-radius:14px;
  box-shadow:0 3px 14px rgba(22,48,60,.055);
}
#app:not(.ec-executive-review) #onboarding-page .onboarding-client-row > div {
  min-width:0;
}
#app:not(.ec-executive-review) #onboarding-page .onboarding-client-row strong {
  color:#263944;
  font-size:14px;
  font-weight:750;
  line-height:1.38;
  overflow-wrap:anywhere;
}
#app:not(.ec-executive-review) #onboarding-page .onboarding-client-row > div:first-child strong {
  font-size:15px;
  letter-spacing:-.015em;
}
#app:not(.ec-executive-review) #onboarding-page .onboarding-client-row small {
  display:block;
  color:#536b7b;
  font-size:12px;
  font-weight:500;
  line-height:1.55;
  margin-top:5px;
  overflow-wrap:anywhere;
}
#app:not(.ec-executive-review) #onboarding-page .onboarding-status-pill {
  padding:6px 10px;
  border:1px solid #cdd9e0;
  background:#eef2f4;
  color:#465c6b;
  font-size:11px;
  line-height:1.4;
  font-weight:800;
  letter-spacing:.035em;
  white-space:nowrap;
}
#app:not(.ec-executive-review) #onboarding-page .onboarding-status-pill[data-status="READY"] {
  color:#195d42;
  background:#e6f5ed;
  border-color:#aedcc3;
}
#app:not(.ec-executive-review) #onboarding-page .onboarding-status-pill[data-status="NEEDS_ACTION"] {
  color:#86440f;
  background:#fff2e5;
  border-color:#f0c7a1;
}
#app:not(.ec-executive-review) #onboarding-page .onboarding-status-pill[data-status="IN_PROGRESS"] {
  color:#205479;
  background:#eaf4fc;
  border-color:#c5dcef;
}
#app:not(.ec-executive-review) #onboarding-page .onboarding-status-pill[data-status="INACTIVE"] {
  color:#465c6b;
  background:#eef2f4;
  border-color:#cdd9e0;
}
#app:not(.ec-executive-review) #onboarding-page .onboarding-connect-button {
  color:#8b3f0b;
  background:#fff0e3;
  border:1px solid #df935c;
  font-size:12px;
  font-weight:800;
  line-height:1.4;
  min-height:40px;
  padding:8px 12px;
}
#app:not(.ec-executive-review) #onboarding-page .onboarding-connect-button:hover:not(:disabled) {
  color:#733608;
  background:#ffe4ce;
  border-color:#cf742e;
}
#app:not(.ec-executive-review) #onboarding-page .onboarding-connect-button:focus-visible {
  outline:2px solid #b6531d;
  outline-offset:3px;
}
#app:not(.ec-executive-review) #onboarding-page .onboarding-connect-button:disabled {
  opacity:1;
  color:#536b7b;
  background:#f0f3f5;
  border-color:#cdd9e0;
  cursor:not-allowed;
}
@media (max-width:1220px) {
  #app:not(.ec-executive-review) #onboarding-page .onboarding-client-row {
    grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
    gap:13px 22px;
  }
  #app:not(.ec-executive-review) #onboarding-page .onboarding-client-row > div:last-child {
    grid-column:1 / -1;
    border-top:1px solid #e9eef0;
    padding-top:12px;
  }
}
@media (max-width:650px) {
  #app:not(.ec-executive-review) #onboarding-page .onboarding-client-row {
    grid-template-columns:minmax(0,1fr);
    gap:14px;
    padding:17px;
  }
  #app:not(.ec-executive-review) #onboarding-page .onboarding-client-row > div:last-child {
    grid-column:auto;
  }
}
