:root {
  --ink: #1b2932;
  --muted: #6c7e8b;
  --line: #e6ebee;
  --soft: #f5f7f8;
  --panel: #ffffff;
  --nav: #17252d;
  --nav-2: #223641;
  --orange: #f37321;
  --orange-soft: #fff1e7;
  --gold: #fdbb30;
  --steel: #425968;
  --good: #2c7a59;
  --bad: #9a3f3f;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--soft); }
button, a { font: inherit; }
.hidden { display: none !important; }
/* Session restore screen */
.session-boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #15242c;
}

.session-boot-mark {
  display: grid;
  justify-items: center;
  gap: 28px;
  transform: translateY(-2vh);
}

.session-boot-logo {
  width: min(260px, 54vw);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: .96;
}

.session-boot-status {
  color: #dce5e9;
  font-size: 13px;
  line-height: 1.5;
  margin: -8px 0 0;
  text-align: center;
  letter-spacing: .015em;
}

.session-boot-spinner {
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  border: 3px solid rgba(255, 255, 255, .18);
  border-top-color: #f37321;
  border-radius: 50%;
  animation: session-boot-spin .8s linear infinite;
}

@keyframes session-boot-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .session-boot-spinner {
    animation: none;
  }
}

.signin-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px; background: radial-gradient(circle at 15% 15%, #fff7ef, transparent 33%), linear-gradient(135deg, #f7f9fa 0%, #edf2f4 100%); }
.signin-card { width: min(520px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 44px; box-shadow: 0 24px 70px rgba(26, 45, 56, .12); }
.signin-logo { width: 205px; display: block; margin-bottom: 28px; }
.signin-card h1 { font-size: 38px; line-height: 1.08; margin: 22px 0 12px; letter-spacing: -.03em; }
.signin-card p { color: var(--muted); line-height: 1.6; }
.environment-pill, .shadow-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--orange-soft); color: #a44912; font-size: 11px; font-weight: 800; letter-spacing: .11em; }
.error-text, .app-error { color: var(--bad); margin-top: 14px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { min-height: 100vh; position: sticky; top: 0; height: 100vh; background: linear-gradient(180deg, var(--nav), #122027); color: #dce5e9; padding: 27px 20px; display: flex; flex-direction: column; }
.brand-block { padding: 0 8px 28px; border-bottom: 1px solid rgba(255,255,255,.09); }
.sidebar-logo { width: 175px; filter: brightness(0) invert(1); opacity: .96; margin-bottom: 14px; }
.nav-list { display: grid; gap: 6px; padding: 22px 0; }
.nav-item { width: 100%; border: 0; border-radius: 10px; padding: 11px 13px; text-align: left; background: transparent; color: #b9c7ce; cursor: pointer; }
.nav-item.active { background: var(--nav-2); color: #fff; font-weight: 700; box-shadow: inset 3px 0 var(--orange); }
.nav-item:disabled { opacity: .45; cursor: default; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 18px; }
.shadow-note { border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 13px; display: grid; gap: 4px; }
.shadow-note strong { color: #fff; font-size: 13px; }
.shadow-note span { color: #91a5af; font-size: 12px; line-height: 1.4; }
.text-button { border: 0; background: transparent; color: #b9c7ce; text-align: left; padding: 6px 2px; cursor: pointer; }
.main-content { padding: 30px clamp(24px, 4vw, 58px) 56px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .11em; font-size: 11px; font-weight: 800; margin: 0 0 6px; }
.topbar h1 { margin: 0; font-size: 32px; letter-spacing: -.025em; }
.topbar-actions { display: flex; gap: 14px; align-items: center; }
.secondary-button { text-decoration: none; color: var(--steel); border: 1px solid #cfd9de; background: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 700; font-size: 13px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding-left: 14px; border-left: 1px solid var(--line); }
.user-chip div { display: grid; gap: 2px; }
.user-chip strong { font-size: 13px; }
.user-chip span:not(.avatar) { color: var(--muted); font-size: 11px; text-transform: capitalize; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--steel); color: #fff; font-weight: 800; font-size: 12px; }
.status-strip { display: flex; align-items: center; gap: 18px; padding: 13px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--muted); }
.status-strip > div { display: flex; gap: 8px; align-items: center; color: var(--ink); }
.status-dot { width: 8px; height: 8px; border-radius: 999px; background: #a4adb2; }
.status-dot[data-status="FRESH"] { background: var(--good); }
.status-dot[data-status="PROVISIONAL"] { background: var(--gold); }
.status-dot[data-status="DEGRADED"] { background: var(--bad); }
.shadow-badge { margin-left: auto; }
.view-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 25px 0 17px; }
.view-toolbar p { color: var(--muted); font-size: 12px; }
.segmented { display: inline-flex; background: #e9eef1; padding: 4px; border-radius: 11px; }
.segment { border: 0; padding: 8px 13px; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.segment.active { background: #fff; color: var(--ink); box-shadow: 0 1px 5px rgba(35, 55, 65, .09); }
.segment:disabled { opacity: .45; cursor: not-allowed; }
.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.kpi-card, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; }
.kpi-card { padding: 18px; min-height: 132px; display: flex; flex-direction: column; }
.kpi-card > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.kpi-card strong { font-size: clamp(24px, 2.3vw, 35px); letter-spacing: -.03em; margin: 18px 0 8px; }
.kpi-card small { color: #8b99a2; margin-top: auto; font-size: 10px; line-height: 1.35; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 14px; margin-top: 14px; }
.panel { padding: 20px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.panel h2 { margin: 0; font-size: 18px; letter-spacing: -.015em; }
.muted { color: var(--muted); font-size: 12px; }
.trend-chart { min-height: 246px; margin-top: 14px; display: grid; align-items: center; }
.trend-chart svg { width: 100%; overflow: visible; }
.gridline { stroke: #edf1f3; stroke-width: 1; }
.trend-sales { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.trend-spend { fill: none; stroke: var(--steel); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trend-dot { fill: var(--orange); }
.axis-label { fill: var(--muted); font-size: 10px; }
.empty-chart { min-height: 220px; border: 1px dashed #d9e1e5; border-radius: 12px; display: grid; place-items: center; align-content: center; text-align: center; gap: 7px; color: var(--muted); }
.empty-chart strong { color: var(--ink); }
.chart-legend { display: flex; gap: 18px; font-size: 11px; color: var(--muted); }
.chart-legend span { display: flex; align-items: center; gap: 7px; }
.chart-legend i { width: 18px; height: 3px; border-radius: 3px; display: inline-block; }
.legend-sales { background: var(--orange); }.legend-spend { background: var(--steel); }
.source-list { margin-top: 18px; display: grid; }
.source-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.source-row div { display: grid; gap: 3px; }
.source-row strong { font-size: 12px; }.source-row div span { color: var(--muted); font-size: 10px; }
.source-state { font-size: 10px; border-radius: 999px; padding: 5px 8px; font-weight: 800; }
.source-state.good { background: #eaf5ef; color: var(--good); }
.source-state.attention { background: #fff4e8; color: #9c4b13; }
.source-state.bad { background: #faecec; color: var(--bad); }
.source-state.neutral { background: #eef2f4; color: var(--steel); }
.access-panel { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.access-panel p:not(.eyebrow) { color: var(--muted); font-size: 12px; max-width: 720px; line-height: 1.55; margin-bottom: 0; }
.scope-chip { white-space: nowrap; background: #edf2f5; color: var(--steel); border-radius: 999px; padding: 8px 12px; font-size: 11px; font-weight: 800; }
.app-error { padding: 14px; border: 1px solid #efc7c7; background: #fff2f2; border-radius: 10px; }
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } .content-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .app-shell { grid-template-columns: 1fr; } .sidebar { display: none; } .main-content { padding: 22px 16px 40px; } .topbar { align-items: flex-start; } .topbar-actions { align-items: flex-end; flex-direction: column-reverse; } .user-chip { border-left: 0; } .kpi-grid { grid-template-columns: repeat(2, 1fr); } .status-strip { flex-wrap: wrap; }.shadow-badge { margin-left: 0; }.view-toolbar { align-items: flex-start; flex-direction: column; }.access-panel { align-items: flex-start; flex-direction: column; } }
@media (max-width: 480px) { .kpi-grid { grid-template-columns: 1fr; }.secondary-button { display: none; }.signin-card { padding: 30px 24px; } }

/* Advertising Phase 1 */
.workspace-page { min-width: 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 22px 0 16px; }
.section-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.section-heading > p { max-width: 600px; text-align: right; line-height: 1.45; }
.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.channel-card { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; padding: 18px; min-width: 0; }
.channel-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.channel-card-head h3 { margin: 4px 0 0; font-size: 16px; letter-spacing: -.015em; }
.channel-code { color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.detail-chip { white-space: nowrap; border-radius: 999px; padding: 5px 8px; background: #f0f3f5; color: var(--muted); font-size: 9px; font-weight: 800; }
.detail-chip.available { background: #eaf5ef; color: var(--good); }
.channel-primary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.channel-primary div, .channel-metrics div { display: grid; gap: 5px; }
.channel-primary span, .channel-metrics span { color: var(--muted); font-size: 10px; font-weight: 700; }
.channel-primary strong { font-size: 22px; letter-spacing: -.02em; }
.channel-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px 10px; }
.channel-metrics strong { font-size: 13px; }
.channel-volume { margin: 15px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.advertising-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .75fr); gap: 14px; margin-top: 14px; align-items: start; }
.campaign-panel { min-width: 0; }
.campaign-heading { margin-bottom: 12px; }
.campaign-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; }
.campaign-table { width: 100%; min-width: 1110px; border-collapse: collapse; font-size: 11px; }
.campaign-table th { position: sticky; top: 0; z-index: 1; background: #f7f9fa; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; text-align: right; padding: 10px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.campaign-table th:first-child, .campaign-table th:nth-child(2) { text-align: left; }
.campaign-table td { padding: 11px 9px; text-align: right; border-bottom: 1px solid #eef2f4; vertical-align: middle; white-space: nowrap; }
.campaign-table tbody tr:last-child td { border-bottom: 0; }
.campaign-table tbody tr:hover { background: #fbfcfc; }
.campaign-table td:first-child, .campaign-table td:nth-child(2) { text-align: left; }
.campaign-name-cell { min-width: 300px; max-width: 360px; white-space: normal !important; }
.campaign-name-cell strong { display: block; color: var(--ink); font-size: 11px; line-height: 1.35; }
.campaign-name-cell span, .campaign-name-cell small { display: block; color: var(--muted); font-size: 9px; line-height: 1.45; margin-top: 3px; }
.source-badge { display: inline-flex; min-width: 31px; justify-content: center; border-radius: 999px; padding: 4px 7px; background: var(--orange-soft); color: #a44912; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.table-note { margin: 10px 2px 0; color: var(--muted); font-size: 10px; }
.insight-list { display: grid; gap: 10px; margin-top: 16px; }
.insight-item { border: 1px solid var(--line); border-left: 3px solid #aab6bc; border-radius: 10px; padding: 13px; display: grid; gap: 4px; }
.insight-item.watch { border-left-color: var(--gold); background: #fffdf7; }
.insight-item.good { border-left-color: var(--good); background: #f8fcfa; }
.insight-item.neutral { border-left-color: var(--steel); }
.insight-item strong { font-size: 20px; letter-spacing: -.02em; }
.insight-item span { color: var(--ink); font-size: 11px; font-weight: 800; }
.insight-item p { margin: 2px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.ad-empty { display: grid; gap: 7px; min-height: 120px; align-content: center; color: var(--muted); }
.ad-empty strong { color: var(--ink); }
.ad-empty.compact { border: 0; min-height: 130px; padding: 20px; text-align: center; }
@media (max-width: 1180px) { .channel-grid { grid-template-columns: 1fr; } .advertising-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .section-heading { align-items: flex-start; flex-direction: column; } .section-heading > p { text-align: left; } .channel-metrics { grid-template-columns: repeat(2, 1fr); } }

/* Advertising Phase 1.5 usability */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.campaign-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(170px, 220px) auto; gap: 9px; align-items: center; margin: 0 0 9px; }
.campaign-search-wrap, .campaign-source-wrap { min-width: 0; }
.campaign-search-wrap input, .campaign-source-wrap select { width: 100%; min-height: 38px; border: 1px solid #d6dfe4; border-radius: 9px; background: #fff; color: var(--ink); padding: 8px 11px; font-size: 11px; outline: none; }
.campaign-search-wrap input::placeholder { color: #9ba8b0; }
.campaign-search-wrap input:focus, .campaign-source-wrap select:focus { border-color: #99aab4; box-shadow: 0 0 0 3px rgba(66, 89, 104, .08); }
.campaign-clear { min-height: 38px; border: 1px solid #d6dfe4; border-radius: 9px; background: #fff; color: var(--steel); padding: 8px 11px; font-size: 10px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.campaign-clear:disabled { opacity: .4; cursor: default; }
.campaign-quick-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; }
.campaign-filter { border: 1px solid #d9e1e5; border-radius: 999px; background: #f8fafb; color: var(--muted); padding: 6px 10px; font-size: 9px; font-weight: 800; cursor: pointer; }
.campaign-filter:hover { color: var(--ink); border-color: #bdc9cf; }
.campaign-filter.active { background: var(--orange-soft); border-color: #ffd8bd; color: #a44912; }
.campaign-table th.sortable { padding: 0; }
.campaign-table th.sortable button { width: 100%; border: 0; background: transparent; color: inherit; padding: 10px 9px; display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; text-transform: uppercase; letter-spacing: .07em; font-size: 9px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.campaign-table th.sortable.left button { justify-content: flex-start; }
.campaign-table th.sortable button:hover { color: var(--ink); background: #f1f5f7; }
.campaign-table th.sortable button span { font-size: 10px; line-height: 1; color: #98a6ae; }
.insight-item { width: 100%; appearance: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.insight-item:hover { border-color: #cfd9de; box-shadow: 0 3px 12px rgba(27, 41, 50, .05); }
.insight-item.active { box-shadow: inset 0 0 0 1px var(--orange), 0 3px 12px rgba(27, 41, 50, .05); }
.insight-item small { margin-top: 4px; color: var(--steel); font-size: 9px; font-weight: 800; }
.campaign-filter:focus-visible, .campaign-clear:focus-visible, .campaign-table th.sortable button:focus-visible, .insight-item:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (max-width: 900px) { .campaign-toolbar { grid-template-columns: 1fr 1fr; } .campaign-clear { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 620px) { .campaign-toolbar { grid-template-columns: 1fr; } .campaign-clear { grid-column: auto; width: 100%; } .campaign-quick-filters { gap: 6px; } .campaign-filter { flex: 1 1 auto; text-align: center; } }
.insight-item:disabled { cursor: default; opacity: .82; box-shadow: none; }
.insight-item:disabled:hover { border-color: var(--line); box-shadow: none; }

/* Products Phase 1 */
.product-kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.products-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(290px, .75fr); gap: 14px; margin-top: 14px; align-items: start; }
.product-panel { min-width: 0; }
.product-heading { margin-bottom: 12px; }
.product-toolbar { grid-template-columns: minmax(260px, 1fr) auto; }
.product-table { min-width: 1450px; }
.product-name-cell { min-width: 330px; max-width: 390px; }
.sku-code { display: inline-block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.product-table th:first-child { position: sticky; left: 0; z-index: 3; background: #f7f9fa; box-shadow: 1px 0 0 var(--line); }
.product-table td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 #eef2f4; }
.product-table tbody tr:hover td:first-child { background: #fbfcfc; }
.product-table th:nth-child(2), .product-table td:nth-child(2) { min-width: 150px; }
@media (max-width: 1250px) { .product-kpi-grid { grid-template-columns: repeat(3, 1fr); } .products-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .product-kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .product-toolbar { grid-template-columns: 1fr; } .product-kpi-grid { grid-template-columns: 1fr; } }

/* Products Phase 1.5 workspace usability */
.product-open-button { width: 100%; border: 0; padding: 0; background: transparent; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.product-open-button strong, .product-open-button span, .product-open-button small { pointer-events: none; }
.product-open-button:hover strong { color: var(--orange); }
.product-open-button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.opportunity-pill { display: inline-flex; min-width: 34px; justify-content: center; align-items: center; border-radius: 999px; padding: 4px 7px; font-size: 10px; font-weight: 900; }
.opportunity-pill.high { background: #fff0e7; color: #a44912; }
.opportunity-pill.medium { background: #fff8dc; color: #8b6b00; }
.opportunity-pill.low { background: #edf3f5; color: var(--steel); }
.drawer-open { overflow: hidden; }
.product-drawer-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(16, 28, 35, .24); backdrop-filter: blur(1px); }
.product-drawer { position: fixed; z-index: 41; top: 0; right: 0; width: min(560px, 92vw); height: 100vh; background: #fff; box-shadow: -18px 0 50px rgba(22, 37, 45, .18); display: flex; flex-direction: column; }
.product-drawer.hidden, .product-drawer-scrim.hidden { display: none; }
.product-drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 24px 18px; border-bottom: 1px solid var(--line); }
.product-drawer-header h2 { margin: 4px 0 0; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.product-drawer-header .muted { margin: 7px 0 0; font-size: 10px; }
.product-drawer-close { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--steel); font-size: 24px; line-height: 1; cursor: pointer; }
.product-drawer-close:hover { color: var(--ink); background: #f7f9fa; }
.product-drawer-close:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.product-drawer-content { overflow-y: auto; padding: 18px 24px 32px; display: grid; gap: 14px; }
.drawer-score-card { border: 1px solid #f2d4bf; background: #fff9f5; border-radius: 14px; padding: 16px; }
.drawer-score-card > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.drawer-score-card span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.drawer-score-card strong { font-size: 30px; letter-spacing: -.03em; }
.drawer-score-card strong small { font-size: 11px; color: var(--muted); margin-left: 2px; }
.drawer-score-card p { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.drawer-tags { display: flex !important; justify-content: flex-start !important; flex-wrap: wrap; gap: 6px !important; margin-top: 12px; }
.drawer-tags span { display: inline-flex; border-radius: 999px; padding: 5px 8px; background: #fff; border: 1px solid #ecd9cd; color: #8c4a24; font-size: 9px; font-weight: 800; text-transform: none; letter-spacing: 0; }
.drawer-section { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; }
.drawer-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.drawer-section-head h3 { margin: 3px 0 0; font-size: 15px; }
.drawer-section-head > span { color: var(--muted); font-size: 9px; font-weight: 700; white-space: nowrap; }
.drawer-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.drawer-metric-grid div { border-radius: 10px; background: #f7f9fa; padding: 11px; display: grid; gap: 5px; }
.drawer-metric-grid span, .attribution-legend span, .product-trend-row span { color: var(--muted); font-size: 9px; font-weight: 700; }
.drawer-metric-grid strong { font-size: 16px; }
.attribution-bar { height: 10px; border-radius: 999px; overflow: hidden; background: #edf1f3; }
.attribution-bar span { display: block; height: 100%; background: var(--orange); }
.attribution-legend { display: grid; gap: 8px; margin-top: 12px; }
.attribution-legend div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.attribution-legend strong { font-size: 12px; }
.drawer-caveat { margin: 11px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.product-trend-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.product-trend-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid #eef2f4; }
.product-trend-row > div { display: grid; gap: 3px; }
.product-trend-row strong { font-size: 12px; }
.product-delta { font-size: 10px !important; font-weight: 900 !important; color: var(--steel) !important; }
.product-delta.up { color: var(--good) !important; }
.product-delta.down { color: #a44912 !important; }
.drawer-empty { color: var(--muted); font-size: 10px; line-height: 1.5; padding: 8px 0; }
.drawer-full-title p:last-child { margin: 8px 0 0; color: var(--ink); font-size: 11px; line-height: 1.55; }
@media (max-width: 620px) { .product-drawer { width: 100vw; } .product-drawer-header { padding: 20px 18px 16px; } .product-drawer-content { padding: 16px 18px 26px; } .drawer-metric-grid { grid-template-columns: 1fr; } }


/* Reports Phase 1 custom reporting */
.reports-heading { align-items: flex-start; }
.reports-heading > .muted { max-width: 560px; text-align: right; line-height: 1.55; }
.report-template-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.report-template-card { appearance: none; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 15px; text-align: left; color: var(--ink); font: inherit; cursor: pointer; display: grid; gap: 5px; min-height: 112px; }
.report-template-card:hover { border-color: #c9d4da; box-shadow: 0 4px 14px rgba(27, 41, 50, .05); }
.report-template-card.active { border-color: #ffd2b6; box-shadow: inset 3px 0 0 var(--orange); background: #fffaf7; }
.report-template-card span { color: var(--orange); text-transform: uppercase; letter-spacing: .08em; font-size: 9px; font-weight: 900; }
.report-template-card strong { font-size: 14px; line-height: 1.25; }
.report-template-card small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.report-template-card:focus-visible, .report-action-button:focus-visible, .report-text-button:focus-visible, .report-column-heading button:focus-visible, .report-field input:focus-visible, .report-field select:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.reports-grid { display: grid; grid-template-columns: minmax(290px, 340px) minmax(0, 1fr); gap: 14px; align-items: start; }
.report-builder-panel { min-width: 0; position: sticky; top: 18px; }
.report-text-button { border: 0; background: transparent; color: var(--steel); font-size: 10px; font-weight: 800; cursor: pointer; padding: 5px; }
.report-text-button:hover { color: var(--ink); }
.report-builder-note { margin: -2px 0 14px; font-size: 9px; line-height: 1.5; }
.report-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.report-field { display: grid; gap: 6px; min-width: 0; }
.report-field-wide { grid-column: 1 / -1; }
.report-field > span, .report-column-heading span { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.report-field input, .report-field select { width: 100%; min-height: 38px; border: 1px solid #d6dfe4; border-radius: 9px; background: #fff; color: var(--ink); padding: 8px 10px; font-size: 10px; outline: none; }
.report-field input:disabled, .report-field select:disabled { background: #f5f7f8; color: #9aa7ae; }
.report-column-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin: 17px 0 9px; }
.report-column-heading > div:first-child { display: grid; gap: 3px; }
.report-column-heading small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.report-column-heading > div:last-child { display: flex; gap: 5px; }
.report-column-heading button { border: 1px solid var(--line); background: #fff; color: var(--steel); border-radius: 7px; padding: 5px 7px; font-size: 8px; font-weight: 800; cursor: pointer; }
.report-column-heading button:hover { color: var(--ink); background: #f7f9fa; }
.report-columns { display: flex; flex-wrap: wrap; gap: 6px; }
.report-column-chip { cursor: pointer; }
.report-column-chip input { position: absolute; opacity: 0; pointer-events: none; }
.report-column-chip span { display: inline-flex; border-radius: 999px; border: 1px solid #d9e1e5; background: #f8fafb; color: var(--muted); padding: 6px 9px; font-size: 8px; font-weight: 800; }
.report-column-chip input:checked + span { background: var(--orange-soft); border-color: #ffd8bd; color: #a44912; }
.report-column-chip input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.report-safety-note { margin-top: 16px; border-radius: 11px; border: 1px solid #dae6e9; background: #f6fafb; padding: 11px; display: grid; gap: 4px; }
.report-safety-note strong { font-size: 10px; }
.report-safety-note span { color: var(--muted); font-size: 9px; line-height: 1.5; }
.report-preview-panel { min-width: 0; }
.report-preview-heading { align-items: center; margin-bottom: 12px; }
.report-preview-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.report-preview-actions > .muted { margin-right: 3px; font-size: 9px; }
.report-action-button { border: 1px solid #d6dfe4; border-radius: 9px; background: #fff; color: var(--steel); min-height: 34px; padding: 7px 10px; font-size: 9px; font-weight: 900; cursor: pointer; }
.report-action-button.primary { border-color: #ffcfad; background: var(--orange-soft); color: #a44912; }
.report-action-button:hover:not(:disabled) { color: var(--ink); border-color: #bdc9cf; }
.report-action-button:disabled { opacity: .4; cursor: default; }
.report-table-wrap { max-height: 620px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.report-preview-table { min-width: max(100%, 820px); }
.report-preview-table th, .report-preview-table td { white-space: nowrap; }
.report-preview-table td.left { text-align: left; max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.report-preview-table th:first-child { position: sticky; left: 0; z-index: 3; background: #f7f9fa; box-shadow: 1px 0 0 var(--line); }
.report-preview-table td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 #eef2f4; }
.report-preview-table tbody tr:hover td:first-child { background: #fbfcfc; }
.report-status { min-height: 16px; margin: 9px 0 0; color: var(--good); font-size: 9px; font-weight: 800; }
@media (max-width: 1180px) { .report-template-grid { grid-template-columns: repeat(2, 1fr); } .reports-grid { grid-template-columns: 1fr; } .report-builder-panel { position: static; } }
@media (max-width: 700px) { .report-template-grid { grid-template-columns: 1fr; } .report-field-grid { grid-template-columns: 1fr; } .report-field-wide { grid-column: auto; } .report-preview-heading { align-items: flex-start; } .report-preview-actions { justify-content: flex-start; } .reports-heading > .muted { text-align: left; } }

/* Reports Phase 1.5 saved configurations and client-ready preview */
.report-library-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 14px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.report-library-copy { display: grid; gap: 3px; min-width: 0; }
.report-library-copy .eyebrow { margin-bottom: 0; }
.report-library-copy strong { font-size: 13px; }
.report-library-copy .muted { font-size: 9px; line-height: 1.4; }
.report-library-controls { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.report-library-controls select { min-width: 210px; min-height: 34px; border: 1px solid #d6dfe4; border-radius: 9px; background: #fff; color: var(--ink); padding: 7px 10px; font-size: 9px; font-weight: 700; }
.report-action-button.danger { color: #8c3d3d; border-color: #e5caca; }
.report-action-button.danger:hover:not(:disabled) { background: #fff7f7; border-color: #dcb3b3; }
.report-save-meta { display: grid; gap: 10px; margin-bottom: 13px; padding-bottom: 13px; border-bottom: 1px solid #eef2f4; }
.report-checkbox-row { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.report-checkbox-row input { margin-top: 2px; accent-color: var(--orange); }
.report-checkbox-row > span { display: grid; gap: 3px; }
.report-checkbox-row strong { font-size: 10px; }
.report-checkbox-row small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.report-schedule-card { margin-top: 16px; border-radius: 11px; border: 1px solid #dfe7ea; background: #fbfcfd; padding: 12px; display: grid; gap: 10px; }
.report-schedule-card > div:first-child { display: grid; gap: 4px; }
.report-schedule-card > div:first-child > span { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.report-schedule-card > div:first-child small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.report-schedule-fields { margin-top: 1px; }
#report-schedule-status { margin: 0; font-size: 9px; line-height: 1.45; }
#reports-page.client-preview .report-library-bar,
#reports-page.client-preview .report-template-grid,
#reports-page.client-preview .report-builder-panel { display: none; }
#reports-page.client-preview .reports-grid { grid-template-columns: minmax(0, 1fr); }
#reports-page.client-preview .report-preview-panel { padding: 26px; }
#reports-page.client-preview #report-copy,
#reports-page.client-preview #report-download,
#reports-page.client-preview #report-row-count { display: none; }
#reports-page.client-preview .reports-heading > div .eyebrow { color: var(--orange); }
#reports-page.client-preview .reports-heading h2::after { content: ' · Client preview'; color: var(--muted); font-weight: 500; font-size: 14px; letter-spacing: 0; }
@media (max-width: 900px) { .report-library-bar { align-items: flex-start; flex-direction: column; } .report-library-controls { width: 100%; justify-content: flex-start; } .report-library-controls select { flex: 1 1 240px; } }

/* Organization Phase 2: manager/director portfolio framework */
.portfolio-heading { margin-top: 6px; align-items: flex-start; }
.portfolio-heading > .muted { max-width: 620px; text-align: right; line-height: 1.55; }
.portfolio-kpi-grid { margin-top: 4px; }
.portfolio-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .65fr); gap: 14px; margin-top: 14px; align-items: start; }
.portfolio-main-panel, .portfolio-side-panel { min-width: 0; }
.portfolio-panel-heading { align-items: center; margin-bottom: 14px; }
.portfolio-manager-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.portfolio-manager-grid:empty { display: none; }
.portfolio-manager-card { appearance: none; border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 14px; text-align: left; color: var(--ink); cursor: pointer; min-width: 0; }
.portfolio-manager-card:hover { border-color: #ccd7dc; box-shadow: 0 6px 18px rgba(27,41,50,.06); }
.portfolio-manager-card:focus-visible, .portfolio-open-client:focus-visible, #portfolio-back:focus-visible, #manager-back:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.portfolio-manager-card-head { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 10px; }
.portfolio-manager-card-head > div { display: grid; gap: 2px; }
.portfolio-manager-card-head strong { font-size: 13px; }
.portfolio-manager-card-head span:not(.portfolio-avatar):not(.portfolio-arrow) { color: var(--muted); font-size: 9px; }
.portfolio-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: #eef2f4; color: var(--steel); font-size: 10px; font-weight: 900; }
.portfolio-arrow { color: var(--orange); font-size: 18px; font-weight: 800; }
.portfolio-manager-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #edf1f3; }
.portfolio-manager-metrics span { display: grid; gap: 3px; }
.portfolio-manager-metrics small { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 7px; font-weight: 900; }
.portfolio-manager-metrics strong { font-size: 11px; }
.portfolio-client-list { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.portfolio-client-header, .portfolio-client-row { display: grid; grid-template-columns: minmax(150px, 1.8fr) repeat(4, minmax(58px, .7fr)) minmax(84px, auto); gap: 8px; align-items: center; padding: 11px 13px; }
.portfolio-client-header { background: #f7f9fa; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 8px; font-weight: 900; }
.portfolio-client-row { background: #fff; border-top: 1px solid #edf1f3; }
.portfolio-client-row:first-of-type { border-top: 0; }
.portfolio-client-row > strong { font-size: 11px; font-weight: 800; }
.portfolio-client-name { display: grid; gap: 3px; min-width: 0; }
.portfolio-client-name strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portfolio-client-name span { color: var(--muted); font-size: 8px; line-height: 1.35; }
.portfolio-open-client { white-space: nowrap; justify-self: end; }
.portfolio-empty { display: grid; gap: 5px; padding: 26px 18px; text-align: center; color: var(--muted); }
.portfolio-empty strong { color: var(--ink); font-size: 12px; }
.portfolio-empty span { font-size: 9px; line-height: 1.5; }
.portfolio-access-summary { display: grid; margin-top: 14px; }
.portfolio-access-row { display: grid; gap: 4px; padding: 11px 0; border-top: 1px solid var(--line); }
.portfolio-access-row span { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 8px; font-weight: 900; }
.portfolio-access-row strong { font-size: 11px; line-height: 1.45; }
.portfolio-access-note { margin-top: 12px; padding: 11px; border-radius: 10px; background: #f6fafb; border: 1px solid #dce7ea; color: var(--muted); font-size: 9px; line-height: 1.55; }
#portfolio-back { cursor: pointer; }
@media (max-width: 1180px) { .portfolio-layout { grid-template-columns: 1fr; } .portfolio-manager-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .portfolio-client-list { overflow-x: auto; } .portfolio-client-header, .portfolio-client-row { min-width: 780px; } }
@media (max-width: 700px) { .portfolio-manager-grid { grid-template-columns: 1fr; } .portfolio-heading > .muted { text-align: left; } }

/* Organization Phase 3A - director-only Command Center sync status */
.organization-sync-panel { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.organization-sync-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.organization-sync-heading h3 { margin: 3px 0 0; font-size: 14px; line-height: 1.3; }
.organization-sync-summary { display: grid; margin-top: 8px; }
.sync-status-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border-radius: 999px; background: #edf3f5; color: var(--steel); font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.sync-status-badge[data-status="REVIEW_REQUIRED"] { background: #fff4e8; color: #9c4b13; }
.sync-status-badge[data-status="PROPOSAL_READY"] { background: #edf8f1; color: #2f6d46; }
.sync-status-badge[data-status="OBSERVED_ONLY"] { background: #eef4f8; color: #3c6175; }
.sync-count-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 10px 0; border-top: 1px solid var(--line); }
.sync-count-grid div { display: grid; gap: 3px; border-radius: 9px; background: #f7f9fa; padding: 9px; }
.sync-count-grid span { color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-size: 7px; font-weight: 900; }
.sync-count-grid strong { font-size: 14px; }

/* Organization Phase 4A - director manager scorecards */
.portfolio-manager-actions { display: inline-flex; align-items: center; gap: 9px; justify-self: end; }
.data-health-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 7px; border-radius: 999px; font-size: 7px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; background: #eef2f4; color: var(--steel); }
.data-health-badge.fresh { background: #edf8f1; color: #2f6d46; }
.data-health-badge.attention { background: #fff4e8; color: #9c4b13; }
.data-health-badge.degraded { background: #fff0ef; color: #9a3f38; }
.data-health-badge.neutral { background: #eef2f4; color: var(--steel); }
.portfolio-manager-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.portfolio-manager-healthline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #edf1f3; color: var(--muted); font-size: 8px; line-height: 1.35; }
.portfolio-manager-healthline span:first-child { font-weight: 800; color: var(--steel); }
@media (max-width: 700px) { .portfolio-manager-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .portfolio-manager-healthline { align-items: flex-start; flex-direction: column; } }

/* Phase 4B - executive design system + agency revenue intelligence */
:root {
  --executive-shadow: 0 16px 42px rgba(24, 40, 50, .055);
  --executive-shadow-hover: 0 20px 52px rgba(24, 40, 50, .09);
  --executive-navy: #15242c;
  --executive-navy-2: #203640;
}
body { background: #f3f5f6; }
.main-content { background: radial-gradient(circle at 86% 2%, rgba(243,115,33,.055), transparent 26%), #f4f6f7; }
.kpi-card, .panel { border-color: #e2e8eb; box-shadow: var(--executive-shadow); }
.kpi-card { border-radius: 18px; min-height: 142px; padding: 20px; }
.panel { border-radius: 18px; }
.secondary-button, .report-action-button { transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease; }
.secondary-button:hover, .report-action-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(24,40,50,.07); }
.executive-heading { margin-top: 8px; margin-bottom: 18px; align-items: end; }
.executive-heading h2 { font-size: clamp(28px, 3vw, 39px); line-height: 1.06; letter-spacing: -.035em; max-width: 760px; }
.executive-heading > .muted { max-width: 520px; }

.portfolio-revenue-hero { position: relative; overflow: hidden; margin: 4px 0 24px; padding: clamp(22px, 3vw, 32px); border-radius: 22px; color: #fff; background: linear-gradient(135deg, var(--executive-navy), #1a2d36 58%, #233c47); box-shadow: 0 22px 60px rgba(17,34,43,.16); }
.portfolio-revenue-hero::after { content: ''; position: absolute; width: 330px; height: 330px; border-radius: 50%; right: -145px; top: -185px; background: radial-gradient(circle, rgba(243,115,33,.34), rgba(243,115,33,0) 68%); pointer-events: none; }
.revenue-hero-heading { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.revenue-hero-heading .eyebrow { color: #aebfc7; }
.revenue-hero-heading h3 { margin: 0; font-size: clamp(22px, 2.3vw, 31px); letter-spacing: -.03em; }
.revenue-source-note { color: #aebfc7; font-size: 10px; font-weight: 700; white-space: nowrap; }
.revenue-kpi-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.revenue-kpi-card { min-width: 0; min-height: 135px; display: flex; flex-direction: column; padding: 17px 18px; border-radius: 15px; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.055); backdrop-filter: blur(8px); }
.revenue-kpi-card > span { color: #aebfc7; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .065em; }
.revenue-kpi-card strong { margin: 17px 0 8px; color: #fff; font-size: clamp(24px, 2.5vw, 36px); letter-spacing: -.04em; line-height: 1; }
.revenue-kpi-card small { margin-top: auto; color: #91a7b1; font-size: 9px; line-height: 1.4; }
.revenue-kpi-card.revenue-kpi-primary { border-color: rgba(243,115,33,.42); background: linear-gradient(135deg, rgba(243,115,33,.18), rgba(255,255,255,.055)); }
.revenue-kpi-card.revenue-kpi-primary strong { color: #fff7f1; }
.portfolio-subsection-label { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 0 2px 10px; }
.portfolio-subsection-label .eyebrow { margin: 0; color: var(--steel); }
.portfolio-subsection-label > span { color: var(--muted); font-size: 10px; }
.portfolio-kpi-grid .kpi-card strong { font-size: clamp(25px, 2.35vw, 34px); }

.portfolio-layout-executive { display: block; margin-top: 18px; }
.portfolio-main-panel-executive { padding: clamp(20px, 2.5vw, 28px); }
.portfolio-manager-stack { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 0; }
.portfolio-manager-section { min-width: 0; padding: clamp(20px, 2.4vw, 28px); border: 1px solid #dfe6e9; border-radius: 19px; background: linear-gradient(180deg, #fff, #fcfdfd); box-shadow: 0 12px 34px rgba(25,44,55,.05); }
.manager-section-head { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 18px; }
.manager-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.manager-identity > div { min-width: 0; }
.manager-identity .eyebrow { margin-bottom: 3px; font-size: 9px; }
.manager-identity h3 { margin: 0; font-size: clamp(23px, 2.2vw, 31px); letter-spacing: -.035em; }
.manager-identity > div > span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.manager-avatar-large { width: 48px; height: 48px; border-radius: 14px; background: var(--executive-navy); color: #fff; font-size: 12px; flex: 0 0 auto; }
.manager-section-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.manager-open-button { min-height: 34px; padding-inline: 12px; font-size: 9px; font-weight: 900; }
.manager-revenue-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.manager-revenue-card { min-height: 108px; display: flex; flex-direction: column; padding: 14px 15px; border-radius: 13px; background: #f5f8f9; border: 1px solid #e7ecef; }
.manager-revenue-card.primary { background: #fff7f1; border-color: #f0d4c1; }
.manager-revenue-card > span { color: var(--muted); font-size: 8px; text-transform: uppercase; font-weight: 900; letter-spacing: .055em; }
.manager-revenue-card strong { margin: 12px 0 5px; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.035em; }
.manager-revenue-card.primary strong { color: #a84c16; }
.manager-revenue-card small { margin-top: auto; color: #83939c; font-size: 8px; line-height: 1.35; }
.manager-revenue-mix { display: grid; grid-template-columns: minmax(190px, .42fr) 1fr; gap: 16px; align-items: center; margin: 13px 0 0; padding: 12px 14px; border-radius: 12px; background: #fafbfc; border: 1px solid #edf1f3; }
.manager-revenue-mix > div:first-child { display: grid; gap: 3px; }
.manager-revenue-mix span { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.manager-revenue-mix strong { font-size: 10px; }
.revenue-mix-track { position: relative; height: 8px; overflow: hidden; border-radius: 999px; background: #dfe7ea; }
.revenue-mix-track::before { content: ''; position: absolute; inset: 0; background: var(--steel); opacity: .28; }
.revenue-mix-track > span { position: relative; z-index: 1; display: block; height: 100%; margin-left: auto; border-radius: inherit; background: var(--orange); }
.manager-performance-band { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 0; margin: 16px 0; border: 1px solid #e6ebee; border-radius: 13px; overflow: hidden; background: #fff; }
.manager-performance-band > div { min-width: 0; padding: 12px 14px; border-left: 1px solid #edf1f3; }
.manager-performance-band > div:first-child { border-left: 0; }
.manager-performance-band span { display: block; color: var(--muted); font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .055em; }
.manager-performance-band strong { display: block; margin-top: 6px; font-size: 15px; letter-spacing: -.02em; }

.portfolio-client-list { border: 0; border-radius: 0; overflow: visible; }
.manager-client-table-wrap { width: 100%; overflow-x: auto; border: 1px solid #e3e9ec; border-radius: 13px; background: #fff; }
.manager-client-table { min-width: 1010px; }
.manager-client-row { display: grid; grid-template-columns: minmax(210px, 1.7fr) repeat(6, minmax(92px, .75fr)) minmax(92px, auto); gap: 10px; align-items: center; min-height: 55px; padding: 10px 12px; border-top: 1px solid #edf1f3; }
.manager-client-row:first-child { border-top: 0; }
.manager-client-header { min-height: 36px; background: #f7f9fa; color: var(--muted); text-transform: uppercase; font-size: 7px; font-weight: 900; letter-spacing: .06em; }
.manager-client-name { display: grid; gap: 3px; min-width: 0; }
.manager-client-link { appearance: none; width: fit-content; max-width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.manager-client-link:hover strong { text-decoration: underline; text-underline-offset: 2px; }
.manager-client-link:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 3px; }
.manager-client-name strong { display: block; max-width: 100%; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.manager-client-name span { color: var(--muted); font-size: 7.5px; line-height: 1.35; }
.manager-client-row > span, .manager-client-row > strong { font-size: 10px; }
.manager-client-ec-revenue { color: #a84c16; font-size: 11px !important; }
.manager-client-commission { display: grid; gap: 2px; }
.manager-client-commission strong { font-size: 10px; }
.manager-client-commission small { color: var(--muted); font-size: 7px; }
.revenue-only-chip { display: inline-flex; justify-self: start; padding: 5px 7px; border-radius: 999px; background: #eef2f4; color: var(--muted); font-size: 7px !important; font-weight: 900; white-space: nowrap; }
.manager-revenue-empty { border: 1px dashed #dce4e8; border-radius: 12px; }

.portfolio-system-status { margin-top: 18px; border: 1px solid #e2e8eb; border-radius: 15px; background: rgba(255,255,255,.66); color: var(--muted); }
.portfolio-system-status > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 16px; }
.portfolio-system-status > summary::-webkit-details-marker { display: none; }
.portfolio-system-status > summary span { color: var(--steel); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.portfolio-system-status > summary small { font-size: 9px; color: #8a9aa3; }
.portfolio-system-status[open] > summary { border-bottom: 1px solid #e6ebee; }
.portfolio-system-status-body { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; padding: 16px; }
.portfolio-system-status .organization-sync-panel { margin: 0; padding: 0; border: 0; }
.portfolio-system-status .portfolio-access-summary { margin: 0; }
.portfolio-system-status .portfolio-access-note { font-size: 8px; }

@media (max-width: 1180px) {
  .revenue-kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .manager-revenue-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .manager-performance-band { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .manager-performance-band > div:nth-child(4) { border-left: 0; border-top: 1px solid #edf1f3; }
  .manager-performance-band > div:nth-child(5) { border-top: 1px solid #edf1f3; }
}
@media (max-width: 760px) {
  .executive-heading, .revenue-hero-heading, .manager-section-head { align-items: flex-start; flex-direction: column; }
  .executive-heading > .muted { text-align: left; }
  .revenue-source-note { white-space: normal; }
  .revenue-kpi-grid, .manager-revenue-grid { grid-template-columns: 1fr; }
  .manager-section-actions { justify-content: flex-start; }
  .manager-revenue-mix { grid-template-columns: 1fr; }
  .manager-performance-band { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .manager-performance-band > div:nth-child(odd) { border-left: 0; }
  .manager-performance-band > div { border-top: 1px solid #edf1f3; }
  .manager-performance-band > div:nth-child(-n+2) { border-top: 0; }
  .portfolio-system-status-body { grid-template-columns: 1fr; }
  .portfolio-system-status > summary { align-items: flex-start; flex-direction: column; gap: 4px; }
}


/* Phase 4C - collapsible director workspace + premium glow visual system */
.manager-accordion { overflow: hidden; padding: 0; }
.manager-accordion > summary { list-style: none; cursor: pointer; user-select: none; margin: 0; padding: clamp(18px, 2.2vw, 24px); }
.manager-accordion > summary::-webkit-details-marker { display: none; }
.manager-accordion[open] > summary { margin-bottom: 0; }
.manager-accordion-body { padding: 0 clamp(18px, 2.2vw, 24px) clamp(20px, 2.4vw, 28px); }
.manager-accordion-chevron { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: 18px; line-height: 1; transition: transform .2s ease, background .2s ease; }
.manager-accordion[open] .manager-accordion-chevron { transform: rotate(180deg); }
.manager-summary-revenue { display: grid; justify-items: end; gap: 2px; font-size: 16px; font-weight: 900; letter-spacing: -.02em; }
.manager-summary-revenue small { font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.manager-body-actions { display: flex; justify-content: flex-end; padding: 0 0 12px; }
.manager-chart-panel { margin-top: 14px; border-radius: 15px; padding: 16px 16px 8px; }
.manager-chart-heading, .portfolio-trend-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.manager-chart-heading > div:first-child { display: grid; gap: 3px; }
.manager-chart-heading > div:first-child span { font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.manager-chart-heading strong { font-size: 15px; }
.portfolio-trend-legend { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 9px; }
.portfolio-trend-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 7px; height: 7px; border-radius: 999px; display: inline-block; }
.legend-dot.sales { background: #ff7a1a; box-shadow: 0 0 10px rgba(255,122,26,.75); }
.legend-dot.spend { background: #4593ff; box-shadow: 0 0 10px rgba(69,147,255,.75); }
.portfolio-glow-chart { min-height: 220px; display: grid; align-items: center; }
.portfolio-glow-chart svg { width: 100%; overflow: visible; }
.portfolio-chart-grid { fill: none; stroke: rgba(152,184,201,.14); stroke-width: 1; }
.portfolio-chart-sales, .portfolio-chart-spend { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.portfolio-chart-sales { stroke: #ff7a1a; stroke-width: 3; }
.portfolio-chart-spend { stroke: #4593ff; stroke-width: 2.35; }
.portfolio-chart-sales.glow, .portfolio-chart-spend.glow { opacity: .42; stroke-width: 7; }
.portfolio-chart-dot.sales { fill: #fff; stroke: #ff7a1a; stroke-width: 2; filter: drop-shadow(0 0 5px rgba(255,122,26,.75)); }
.portfolio-chart-axis { fill: #8499a7; font-size: 10px; }
.portfolio-trend-empty { min-height: 190px; display: grid; place-items: center; align-content: center; gap: 5px; text-align: center; color: #8196a4; }
.portfolio-team-trend-panel { margin: 16px 0 22px; padding: 20px; border-radius: 18px; }
.portfolio-trend-heading h2 { margin: 2px 0 0; font-size: 18px; }
.portfolio-trend-heading .eyebrow { margin: 0; }
.director-theme { --ink: #f3f7fa; --muted: #8fa5b3; --line: rgba(151,184,202,.16); --panel: #102733; --soft: #071722; --steel: #8da7b7; }
.director-theme .main-content { position: relative; color: #f3f7fa; background: radial-gradient(circle at 78% -4%, rgba(255,111,18,.13), transparent 25%), radial-gradient(circle at 38% 20%, rgba(23,102,160,.12), transparent 28%), linear-gradient(180deg, #081923 0%, #07141d 52%, #081923 100%); }
.director-theme .main-content::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .24; background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, #000, transparent 72%); }
.director-theme .main-content > * { position: relative; z-index: 1; }
.director-theme .topbar { padding-bottom: 18px; border-bottom: 1px solid rgba(151,184,202,.13); }
.director-theme .topbar h1, .director-theme .executive-heading h2, .director-theme .portfolio-trend-heading h2, .director-theme .portfolio-panel-heading h2, .director-theme .manager-identity h3 { color: #fff; }
.director-theme .topbar .eyebrow, .director-theme .eyebrow { color: #89a2b1; }
.director-theme .user-chip { border-left-color: rgba(151,184,202,.18); }
.director-theme .user-chip strong { color: #fff; }
.director-theme .user-chip span:not(.avatar), .director-theme .executive-heading > .muted { color: #8ea4b2; }
.director-theme .avatar, .director-theme .manager-avatar-large { background: linear-gradient(145deg, #29495b, #122d3c); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.director-theme .portfolio-revenue-hero { margin-top: 10px; border: 1px solid rgba(255,122,26,.18); background: linear-gradient(135deg, rgba(17,44,57,.96), rgba(10,31,42,.98)); box-shadow: 0 22px 70px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.03); }
.director-theme .revenue-kpi-card, .director-theme .portfolio-kpi-grid .kpi-card { background: linear-gradient(180deg, rgba(25,55,68,.82), rgba(15,40,52,.92)); border-color: rgba(151,184,202,.16); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.director-theme .revenue-kpi-primary { background: linear-gradient(180deg, rgba(72,46,29,.52), rgba(35,43,47,.88)); border-color: rgba(255,122,26,.44); }
.director-theme .revenue-kpi-card span, .director-theme .revenue-kpi-card small, .director-theme .portfolio-kpi-grid .kpi-card > span, .director-theme .portfolio-kpi-grid .kpi-card small { color: #8da5b4; }
.director-theme .revenue-kpi-card strong, .director-theme .portfolio-kpi-grid .kpi-card strong { color: #fff; }
.director-theme .revenue-kpi-primary strong { color: #ff822d; text-shadow: 0 0 24px rgba(255,122,26,.18); }
.director-theme .portfolio-subsection-label > span { color: #78909f; }
.director-theme .portfolio-team-trend-panel, .director-theme .manager-chart-panel { background: linear-gradient(180deg, rgba(17,45,58,.92), rgba(10,29,40,.96)); border: 1px solid rgba(151,184,202,.17); box-shadow: 0 18px 54px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.025); }
.director-theme .portfolio-trend-legend { color: #9bb0bd; }
.director-theme .portfolio-layout-executive { margin-top: 0; }
.director-theme .portfolio-main-panel-executive { padding: 0; border: 0; background: transparent; box-shadow: none; }
.director-theme .portfolio-panel-heading { padding: 6px 2px 12px; }
.director-theme .portfolio-panel-heading h2 { font-size: 23px; }
.director-theme .portfolio-manager-stack { gap: 12px; }
.director-theme .portfolio-manager-section { border-color: rgba(151,184,202,.16); background: linear-gradient(180deg, rgba(14,39,51,.96), rgba(9,29,40,.98)); box-shadow: 0 14px 46px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.025); }
.director-theme .portfolio-manager-section[open] { border-color: rgba(255,122,26,.56); box-shadow: 0 18px 56px rgba(0,0,0,.22), 0 0 0 1px rgba(255,122,26,.09), inset 0 1px rgba(255,255,255,.025); }
.director-theme .manager-accordion-summary:hover { background: rgba(255,255,255,.018); }
.director-theme .manager-identity > div > span, .director-theme .manager-summary-revenue small { color: #8199a7; }
.director-theme .manager-summary-revenue { color: #ff8330; }
.director-theme .manager-accordion-chevron { color: #9cb2bf; background: rgba(255,255,255,.035); }
.director-theme .manager-open-button { color: #dbe8ee; background: rgba(17,48,63,.92); border-color: rgba(151,184,202,.22); }
.director-theme .manager-revenue-card { background: linear-gradient(180deg, rgba(25,55,68,.82), rgba(15,40,52,.92)); border-color: rgba(151,184,202,.14); }
.director-theme .manager-revenue-card.primary { background: linear-gradient(180deg, rgba(70,47,32,.56), rgba(28,40,46,.94)); border-color: rgba(255,122,26,.38); }
.director-theme .manager-revenue-card > span, .director-theme .manager-revenue-card small, .director-theme .manager-chart-heading > div:first-child span { color: #8199a7; }
.director-theme .manager-revenue-card strong, .director-theme .manager-chart-heading strong { color: #f7fafc; }
.director-theme .manager-revenue-card.primary strong { color: #ff822d; text-shadow: 0 0 20px rgba(255,122,26,.18); }
.director-theme .manager-revenue-mix { background: rgba(13,37,49,.88); border-color: rgba(151,184,202,.13); }
.director-theme .manager-revenue-mix span { color: #7e96a4; }
.director-theme .manager-revenue-mix strong { color: #dbe6eb; }
.director-theme .revenue-mix-track { background: #1b3948; }
.director-theme .revenue-mix-track > span { background: linear-gradient(90deg, #ff6f12, #ff9b52); box-shadow: 0 0 12px rgba(255,116,24,.45); }
.director-theme .manager-performance-band { background: rgba(11,32,43,.92); border-color: rgba(151,184,202,.13); }
.director-theme .manager-performance-band > div { border-left-color: rgba(151,184,202,.12); }
.director-theme .manager-performance-band span { color: #7892a1; }
.director-theme .manager-performance-band strong { color: #f2f7f9; }
.director-theme .manager-client-table-wrap { background: rgba(9,29,40,.96); border-color: rgba(151,184,202,.14); }
.director-theme .manager-client-header { background: rgba(25,55,68,.72); color: #8299a7; }
.director-theme .manager-client-row { border-top-color: rgba(151,184,202,.11); color: #cbd9df; }
.director-theme .manager-client-name strong { color: #f4f8fa; }
.director-theme .manager-client-link { color: #f4f8fa; }
.director-theme .manager-client-name span, .director-theme .manager-client-commission small { color: #7892a1; }
.director-theme .manager-client-ec-revenue { color: #ff8330; }
.director-theme .revenue-only-chip { background: rgba(86,115,131,.18); color: #90a7b4; }
.director-theme .data-health-badge.fresh { background: rgba(35,146,99,.16); color: #55d59e; }
.director-theme .data-health-badge.attention { background: rgba(255,151,54,.13); color: #ffac5d; }
.director-theme .data-health-badge.degraded { background: rgba(205,72,72,.16); color: #ff8585; }
.director-theme .portfolio-system-status { margin-top: 28px; background: rgba(11,31,42,.62); border-color: rgba(151,184,202,.11); }
.director-theme .portfolio-system-status > summary span { color: #7e96a4; }
.director-theme .portfolio-system-status > summary small, .director-theme .portfolio-access-row span, .director-theme .portfolio-access-note { color: #6f8998; }
.director-theme .portfolio-system-status[open] > summary, .director-theme .portfolio-access-row { border-color: rgba(151,184,202,.1); }
.director-theme .portfolio-access-row strong, .director-theme .organization-sync-heading h3 { color: #dce7ec; }
@media (max-width: 900px) { .manager-summary-revenue { display: none; } .manager-chart-heading, .portfolio-trend-heading { align-items: flex-start; flex-direction: column; } .portfolio-glow-chart { min-width: 660px; } .portfolio-team-trend-panel, .manager-chart-panel { overflow-x: auto; } }

/* Phase 4D - simplify director presentation and make goals the active control */
.goal-edit-button, .goal-save-button, .goal-cancel-button {
  appearance: none;
  border-radius: 10px;
  border: 1px solid rgba(151,184,202,.24);
  background: rgba(13,37,49,.72);
  color: #dce7ec;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  padding: 10px 13px;
  cursor: pointer;
}
.goal-edit-button:hover, .goal-edit-button.active, .goal-save-button:hover {
  border-color: #ff7a1a;
  color: #fff;
}
.goal-save-button { background: #ff7a1a; border-color: #ff7a1a; color: #fff; }
.goal-cancel-button { background: transparent; }
.revenue-heading-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.goal-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto minmax(120px, auto);
  gap: 12px;
  align-items: end;
  margin: 14px 0 4px;
  padding: 14px;
  border: 1px solid rgba(255,122,26,.28);
  border-radius: 12px;
  background: rgba(7,23,34,.72);
}
.goal-editor label { display: grid; gap: 6px; }
.goal-editor label > span { color: #8da5b4; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.goal-editor input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(151,184,202,.2);
  border-radius: 9px;
  background: #0b202c;
  color: #f5f8fa;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 11px;
  outline: none;
}
.goal-editor input:focus { border-color: #ff7a1a; box-shadow: 0 0 0 2px rgba(255,122,26,.1); }
.goal-editor-actions { display: flex; gap: 8px; align-items: center; }
.goal-status { min-height: 12px; color: #9eb1bc; font-size: 9px; }
.manager-goal-editor { margin: 0 0 14px; }

.director-theme .main-content {
  background: #081923;
}
.director-theme .main-content::before { display: none; }
.director-theme .topbar { border-bottom-color: rgba(151,184,202,.12); }
.director-theme .portfolio-revenue-hero {
  background: #102733;
  border-color: rgba(151,184,202,.17);
  box-shadow: none;
}
.director-theme .revenue-kpi-card,
.director-theme .revenue-kpi-primary,
.director-theme .portfolio-kpi-grid .kpi-card {
  background: #122b37;
  border-color: rgba(151,184,202,.15);
  box-shadow: none;
}
.director-theme .revenue-kpi-card strong,
.director-theme .revenue-kpi-primary strong,
.director-theme .portfolio-kpi-grid .kpi-card strong {
  color: #f7fafc;
  text-shadow: none;
}
.director-theme .portfolio-manager-section,
.director-theme .portfolio-manager-section[open] {
  background: #0d2531;
  border-color: rgba(151,184,202,.15);
  box-shadow: none;
}
.director-theme .manager-accordion-summary:hover { background: rgba(255,255,255,.022); }
.director-theme .manager-summary-revenue { color: #f3f7fa; }
.director-theme .manager-accordion-chevron { background: transparent; border: 1px solid rgba(151,184,202,.15); }
.director-theme .manager-open-button { background: transparent; }
.director-theme .manager-revenue-card,
.director-theme .manager-revenue-card.primary {
  background: #122b37;
  border-color: rgba(151,184,202,.14);
}
.director-theme .manager-revenue-card strong,
.director-theme .manager-revenue-card.primary strong { color: #f7fafc; text-shadow: none; }
.director-theme .manager-chart-panel {
  background: #102733;
  border-color: rgba(151,184,202,.14);
  box-shadow: none;
}
.director-theme .portfolio-chart-sales.glow,
.director-theme .portfolio-chart-spend.glow { opacity: .22; stroke-width: 5; }
.director-theme .manager-revenue-mix,
.director-theme .manager-performance-band,
.director-theme .manager-client-table-wrap { background: #0b202b; }
.director-theme .revenue-mix-track { background: #183642; }
.director-theme .revenue-mix-track > span { background: #7893a2; box-shadow: none; }
.director-theme .manager-client-ec-revenue { color: #f3f7fa; }
.director-theme .portfolio-system-status { background: transparent; }
.director-theme .goal-edit-button,
.director-theme .goal-cancel-button { background: transparent; }
.director-theme .goal-edit-button.active { background: rgba(255,122,26,.08); }

@media (max-width: 900px) {
  .goal-editor { grid-template-columns: 1fr; }
  .revenue-heading-actions { justify-content: flex-start; }
}

/* Phase 4E - unified executive dark styling for manager and client workspaces */
.director-theme .main-content {
  background: #081923;
  color: #f3f7fa;
}
.director-theme .topbar h1,
.director-theme .section-heading h2,
.director-theme .panel h2,
.director-theme .channel-card h3,
.director-theme .report-template-card strong,
.director-theme .report-library-copy strong,
.director-theme .drawer-section h3,
.director-theme .product-drawer h2,
.director-theme .empty-chart strong,
.director-theme .ad-empty strong,
.director-theme .insight-item span,
.director-theme .campaign-name-cell strong {
  color: #f5f8fa;
}
.director-theme .secondary-button,
.director-theme .report-action-button,
.director-theme .campaign-clear,
.director-theme .product-drawer-close,
.director-theme .report-column-heading button {
  background: transparent;
  border-color: rgba(151,184,202,.22);
  color: #d6e3e9;
  box-shadow: none;
}
.director-theme .secondary-button:hover,
.director-theme .report-action-button:hover:not(:disabled),
.director-theme .campaign-clear:hover,
.director-theme .report-column-heading button:hover,
.director-theme .product-drawer-close:hover {
  background: rgba(255,255,255,.035);
  border-color: rgba(151,184,202,.36);
  color: #fff;
  box-shadow: none;
  transform: none;
}
.director-theme .report-action-button.primary {
  background: rgba(243,115,33,.1);
  border-color: rgba(243,115,33,.45);
  color: #ff9b5b;
}
.director-theme .status-strip,
.director-theme .workspace-page .kpi-card,
.director-theme .workspace-page .panel,
.director-theme .channel-card,
.director-theme .report-library-bar,
.director-theme .report-template-card,
.director-theme .report-schedule-card,
.director-theme .report-safety-note,
.director-theme .drawer-section,
.director-theme .drawer-metric-grid div {
  background: #102733;
  border-color: rgba(151,184,202,.15);
  box-shadow: none;
}
.director-theme .workspace-page .kpi-card > span,
.director-theme .workspace-page .kpi-card small,
.director-theme .status-strip,
.director-theme .view-toolbar p,
.director-theme .section-heading > p,
.director-theme .channel-primary span,
.director-theme .channel-metrics span,
.director-theme .channel-volume,
.director-theme .table-note,
.director-theme .report-template-card small,
.director-theme .report-field > span,
.director-theme .report-column-heading span,
.director-theme .report-column-heading small,
.director-theme .report-safety-note span,
.director-theme .report-checkbox-row small,
.director-theme .report-schedule-card > div:first-child > span,
.director-theme .report-schedule-card > div:first-child small,
.director-theme .drawer-section .muted,
.director-theme .drawer-metric-grid span {
  color: #8fa5b3;
}
.director-theme .workspace-page .kpi-card strong,
.director-theme .status-strip > div,
.director-theme .channel-primary strong,
.director-theme .channel-metrics strong,
.director-theme .drawer-metric-grid strong {
  color: #f7fafc;
}
.director-theme .segmented {
  background: #102733;
  border: 1px solid rgba(151,184,202,.14);
}
.director-theme .segment { color: #8fa5b3; }
.director-theme .segment.active {
  background: #183542;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(243,115,33,.62);
}
.director-theme .source-row,
.director-theme .channel-primary,
.director-theme .report-save-meta,
.director-theme .product-drawer-header {
  border-color: rgba(151,184,202,.13);
}
.director-theme .source-row strong { color: #eef5f8; }
.director-theme .source-row div span { color: #7892a1; }
.director-theme .scope-chip,
.director-theme .detail-chip,
.director-theme .opportunity-pill.low {
  background: rgba(151,184,202,.1);
  color: #9fb2bd;
}
.director-theme .access-panel {
  background: transparent;
  border-color: rgba(151,184,202,.11);
  box-shadow: none;
}
.director-theme .access-panel p:not(.eyebrow) { color: #758e9c; }

/* Keep functional states colored, while passive surfaces stay neutral. */
.director-theme .detail-chip.available,
.director-theme .source-state.good { background: rgba(44,122,89,.16); color: #68d1a4; }
.director-theme .source-state.attention { background: rgba(255,151,54,.13); color: #ffac5d; }
.director-theme .source-state.bad { background: rgba(154,63,63,.18); color: #ef9696; }
.director-theme .source-state.neutral { background: rgba(145,181,197,.12); color: #91b5c5; }
.director-theme .campaign-filter,
.director-theme .report-column-chip span {
  background: #0d222d;
  border-color: rgba(151,184,202,.16);
  color: #8fa5b3;
}
.director-theme .campaign-filter:hover { color: #fff; border-color: rgba(151,184,202,.3); }
.director-theme .campaign-filter.active,
.director-theme .report-column-chip input:checked + span,
.director-theme .report-template-card.active {
  background: rgba(243,115,33,.08);
  border-color: rgba(243,115,33,.44);
  color: #ff9b5b;
  box-shadow: inset 3px 0 0 var(--orange);
}
.director-theme .report-template-card:hover { border-color: rgba(151,184,202,.28); box-shadow: none; }

/* Dark controls and tables across Advertising, Products and Reports. */
.director-theme .campaign-search-wrap input,
.director-theme .campaign-source-wrap select,
.director-theme .report-field input,
.director-theme .report-field select,
.director-theme .report-library-controls select {
  background: #0b202c;
  border-color: rgba(151,184,202,.2);
  color: #f3f7fa;
}
.director-theme .campaign-search-wrap input::placeholder,
.director-theme .report-field input::placeholder { color: #708895; }
.director-theme .report-field input:disabled,
.director-theme .report-field select:disabled { background: #0d222d; color: #657d8a; }
.director-theme .campaign-table-wrap,
.director-theme .report-table-wrap { border-color: rgba(151,184,202,.15); }
.director-theme .campaign-table th,
.director-theme .product-table th:first-child,
.director-theme .report-preview-table th:first-child {
  background: #132d39;
  color: #8fa5b3;
  border-color: rgba(151,184,202,.14);
  box-shadow: 1px 0 0 rgba(151,184,202,.12);
}
.director-theme .campaign-table td { border-bottom-color: rgba(151,184,202,.1); color: #cbd9df; }
.director-theme .campaign-table tbody tr:hover { background: rgba(255,255,255,.025); }
.director-theme .campaign-table th.sortable button:hover { background: rgba(255,255,255,.035); color: #fff; }
.director-theme .product-table td:first-child,
.director-theme .report-preview-table td:first-child {
  background: #102733;
  box-shadow: 1px 0 0 rgba(151,184,202,.1);
}
.director-theme .product-table tbody tr:hover td:first-child,
.director-theme .report-preview-table tbody tr:hover td:first-child { background: #132d39; }
.director-theme .campaign-name-cell span,
.director-theme .campaign-name-cell small { color: #7892a1; }
.director-theme .source-badge { background: rgba(243,115,33,.11); color: #ff9b5b; }

/* Performance signals stay readable without turning the page into an alert dashboard. */
.director-theme .insight-item,
.director-theme .insight-item.watch,
.director-theme .insight-item.good,
.director-theme .insight-item.neutral {
  background: #0d222d;
  border-color: rgba(151,184,202,.14);
  border-left-color: rgba(151,184,202,.28);
  box-shadow: none;
}
.director-theme .insight-item.watch { border-left-color: rgba(253,187,48,.65); }
.director-theme .insight-item.good { border-left-color: rgba(65,174,126,.55); }
.director-theme .insight-item p { color: #8097a4; }
.director-theme .insight-item small { color: #9aafba; }

/* Client overview graph gets the same restrained orange / blue glow language. */
.director-theme .gridline { stroke: rgba(151,184,202,.13); }
.director-theme .axis-label { fill: #7f96a4; }
.director-theme .trend-sales {
  stroke: #ff7a1a;
  filter: drop-shadow(0 0 5px rgba(255,122,26,.42));
}
.director-theme .trend-spend {
  stroke: #4593ff;
  filter: drop-shadow(0 0 4px rgba(69,147,255,.34));
}
.director-theme .trend-dot {
  fill: #fff;
  stroke: #ff7a1a;
  stroke-width: 2;
  filter: drop-shadow(0 0 4px rgba(255,122,26,.42));
}
.director-theme .legend-sales { background: #ff7a1a; box-shadow: 0 0 8px rgba(255,122,26,.35); }
.director-theme .legend-spend { background: #4593ff; box-shadow: 0 0 8px rgba(69,147,255,.3); }
.director-theme .empty-chart { border-color: rgba(151,184,202,.18); color: #7892a1; }

/* Product detail drawer follows the same workspace system. */
.director-theme .product-drawer {
  background: #0b202b;
  color: #f3f7fa;
  box-shadow: -18px 0 50px rgba(0,0,0,.34);
}
.director-theme .product-drawer-scrim { background: rgba(2,10,14,.52); }
.director-theme .drawer-score-card {
  background: #102733;
  border-color: rgba(243,115,33,.24);
}
.director-theme .drawer-tags span {
  background: #0d222d;
  border-color: rgba(151,184,202,.14);
  color: #a9bbc5;
}
.director-theme .attribution-bar { background: #183642; }
.director-theme .drawer-full-title p:last-child { color: #d6e3e9; }

/* Manager drilldown uses the same neutral dark executive system as Director. */
.director-theme .portfolio-main-panel-executive { color: #f3f7fa; }
.director-theme .portfolio-client-list .manager-client-table-wrap {
  background: #0b202b;
  border-color: rgba(151,184,202,.14);
}
.director-theme .portfolio-client-list .manager-client-header { background: #132d39; color: #8299a7; }
.director-theme .portfolio-client-list .manager-client-row { border-top-color: rgba(151,184,202,.1); color: #cbd9df; }
.director-theme .portfolio-client-list .manager-client-name strong { color: #f4f8fa; }
.director-theme .portfolio-client-list .manager-client-name span,
.director-theme .portfolio-client-list .manager-client-commission small { color: #7892a1; }
.director-theme .portfolio-client-list .manager-client-ec-revenue { color: #f3f7fa; }

@media (max-width: 760px) {
  .director-theme .main-content { padding-top: 22px; }
}
.director-theme .trend-sales-area { fill: url(#client-sales-area); }

/* Alpha41.4 live Seller Central reporting */
.amazon-live-panel { margin-top: 14px; }
.amazon-live-heading { align-items: center; }
.amazon-live-note { margin: 7px 0 0; line-height: 1.45; }
.amazon-live-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.amazon-live-market { border: 1px solid var(--line); border-radius: 12px; padding: 15px; min-width: 0; background: rgba(255,255,255,.025); }
.amazon-live-market-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.amazon-live-market-head div { display: grid; gap: 3px; }
.amazon-live-market-head strong { font-size: 14px; }
.amazon-live-market-head span, .amazon-live-market-head small { color: var(--muted); font-size: 9px; }
.amazon-live-market-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 8px; margin-top: 14px; }
.amazon-live-market-kpis div { display: grid; gap: 4px; }
.amazon-live-market-kpis span { color: var(--muted); font-size: 9px; font-weight: 700; }
.amazon-live-market-kpis strong { font-size: 16px; letter-spacing: -.015em; }
.amazon-live-coverage { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.4; }
@media (max-width: 1180px) { .amazon-live-grid { grid-template-columns: 1fr; } }

/* Alpha 45 report upload pilot */
.report-upload-panel { margin-top: 18px; padding: 22px; }
.report-upload-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.report-upload-heading h2 { margin: 0 0 5px; font-size: 18px; letter-spacing: -.015em; }
.report-upload-heading .muted { margin: 0; max-width: 700px; line-height: 1.55; }
.report-upload-pilot { white-space: nowrap; border-radius: 999px; padding: 6px 9px; background: var(--orange-soft); color: #a44912; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.report-upload-form { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.report-upload-field { display: grid; gap: 6px; min-width: 0; }
.report-upload-field > span { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.report-upload-field input, .report-upload-field select { width: 100%; min-height: 40px; border: 1px solid #d6dfe4; border-radius: 9px; background: #fff; color: var(--ink); padding: 8px 10px; font-size: 11px; outline: none; }
.report-upload-field input:focus, .report-upload-field select:focus, .report-upload-dropzone:focus-within { border-color: #f0a36e; box-shadow: 0 0 0 3px rgba(243,115,33,.09); }
.report-upload-dropzone { grid-column: 1 / -1; min-height: 112px; border: 1px dashed #cbd6dc; border-radius: 13px; background: #fafcfd; display: grid; place-items: center; align-content: center; gap: 5px; text-align: center; cursor: pointer; padding: 18px; transition: border-color .16s ease, background .16s ease; }
.report-upload-dropzone.is-dragging { border-color: var(--orange); background: #fff8f3; }
.report-upload-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.report-upload-dropzone strong { font-size: 13px; }
.report-upload-dropzone span { color: var(--muted); font-size: 10px; }
.report-upload-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; min-height: 36px; }
.report-upload-status { color: var(--muted); font-size: 10px; line-height: 1.4; }
.report-upload-status.good { color: var(--good); font-weight: 800; }
.report-upload-status.bad { color: var(--bad); font-weight: 800; }
.report-upload-history { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.report-upload-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.report-upload-history-heading strong { font-size: 11px; }
.report-upload-history-heading span { color: var(--muted); font-size: 9px; }
.report-upload-history-list { display: grid; gap: 4px; max-height: 118px; overflow-y: auto; overscroll-behavior: contain; }
.report-upload-history-row { display: grid; grid-template-columns: minmax(150px, 1.45fr) minmax(100px, .75fr) minmax(74px, .5fr) minmax(96px, .72fr); gap: 8px; align-items: center; min-height: 34px; padding: 6px 9px; border: 1px solid #edf1f3; border-radius: 8px; background: #fbfcfd; }
.report-upload-history-row strong { font-size: 9px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-upload-history-row span { color: var(--muted); font-size: 8px; }
.report-upload-history-row .upload-ready { color: var(--good); font-weight: 900; }
@media (max-width: 950px) { .report-upload-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .report-upload-history-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .report-upload-heading { flex-direction: column; } .report-upload-form { grid-template-columns: 1fr; } .report-upload-dropzone, .report-upload-actions { grid-column: 1; } }
.director-theme .report-upload-panel { background: rgba(13,34,46,.84); border-color: rgba(151,184,202,.14); }
.director-theme .report-upload-field > span, .director-theme .report-upload-history-heading span, .director-theme .report-upload-dropzone span, .director-theme .report-upload-status { color: #7f98a7; }
.director-theme .report-upload-field input, .director-theme .report-upload-field select { background: #102b3a; border-color: rgba(151,184,202,.18); color: #edf4f7; }
.director-theme .report-upload-dropzone { background: rgba(9,29,40,.68); border-color: rgba(151,184,202,.24); }
.director-theme .report-upload-dropzone.is-dragging { border-color: #ff8a3d; background: rgba(74,40,20,.32); }
.director-theme .report-upload-history { border-color: rgba(151,184,202,.12); }
.director-theme .report-upload-history-row { background: rgba(9,29,40,.58); border-color: rgba(151,184,202,.1); }
.director-theme .report-upload-history-row strong { color: #e8f0f4; }

/* ALPHA 46 KEYWORD INTELLIGENCE */
.report-upload-history-row { appearance: none; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.report-upload-history-row:hover { border-color: #f0b38b; box-shadow: 0 4px 16px rgba(25,42,51,.05); }
.report-upload-history-row.selected { border-color: #f37321; box-shadow: 0 0 0 2px rgba(243,115,33,.08); }
.keyword-intelligence { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.keyword-intelligence-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.keyword-intelligence-heading h3 { margin: 0 0 5px; font-size: 17px; letter-spacing: -.015em; }
.keyword-intelligence-heading .muted { margin: 0; }
.keyword-intelligence-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
.keyword-intelligence-summary article { min-width: 0; padding: 13px 14px; border: 1px solid #e8eef1; border-radius: 11px; background: #fbfcfd; }
.keyword-intelligence-summary span { display: block; color: var(--muted); font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.keyword-intelligence-summary strong { display: block; margin-top: 7px; font-size: 20px; letter-spacing: -.025em; }
.keyword-intelligence-summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.keyword-intelligence-body { display: grid; grid-template-columns: minmax(210px, .68fr) minmax(0, 2fr); gap: 14px; margin-top: 14px; align-items: start; }
.keyword-rank-panel, .keyword-opportunity-panel { border: 1px solid #e8eef1; border-radius: 11px; background: #fff; overflow: hidden; }
.keyword-rank-panel { padding: 13px; }
.keyword-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 0 10px; }
.keyword-opportunity-panel .keyword-section-heading { padding: 13px 13px 10px; }
.keyword-section-heading strong { font-size: 10px; }
.keyword-section-heading span { color: var(--muted); font-size: 8px; }
.keyword-rank-buckets { display: grid; gap: 9px; }
.keyword-rank-row { display: grid; grid-template-columns: 58px 1fr 34px; gap: 8px; align-items: center; }
.keyword-rank-row span { color: var(--muted); font-size: 8px; font-weight: 800; }
.keyword-rank-row strong { text-align: right; font-size: 9px; }
.keyword-rank-track { height: 6px; border-radius: 999px; background: #edf2f4; overflow: hidden; }
.keyword-rank-track i { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: var(--orange); }
.keyword-table-wrap { width: 100%; overflow: auto; }
.keyword-intelligence-table { width: 100%; border-collapse: collapse; min-width: 690px; }
.keyword-intelligence-table th { padding: 8px 10px; background: #f7f9fa; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .04em; text-align: right; border-top: 1px solid #edf1f3; border-bottom: 1px solid #edf1f3; white-space: nowrap; }
.keyword-intelligence-table th:first-child, .keyword-intelligence-table td:first-child { text-align: left; }
.keyword-intelligence-table td { padding: 9px 10px; border-bottom: 1px solid #f0f3f5; font-size: 9px; text-align: right; white-space: nowrap; }
.keyword-intelligence-table td:first-child { min-width: 210px; white-space: normal; }
.keyword-intelligence-table tbody tr:last-child td { border-bottom: 0; }
.keyword-intelligence-table td strong { font-size: 9px; font-weight: 800; }
.director-theme .report-upload-history-row.selected { border-color: #ff8a3d; box-shadow: 0 0 0 2px rgba(255,138,61,.1); }
.director-theme .keyword-intelligence { border-color: rgba(151,184,202,.12); }
.director-theme .keyword-intelligence-summary article, .director-theme .keyword-rank-panel, .director-theme .keyword-opportunity-panel { background: rgba(9,29,40,.58); border-color: rgba(151,184,202,.1); }
.director-theme .keyword-intelligence-summary span, .director-theme .keyword-intelligence-summary small, .director-theme .keyword-section-heading span, .director-theme .keyword-rank-row span { color: #7f98a7; }
.director-theme .keyword-rank-track { background: rgba(151,184,202,.12); }
.director-theme .keyword-intelligence-table th { background: rgba(16,43,58,.82); color: #8ea5b2; border-color: rgba(151,184,202,.1); }
.director-theme .keyword-intelligence-table td { border-color: rgba(151,184,202,.08); color: #dbe7ed; }
@media (max-width: 1050px) { .keyword-intelligence-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } .keyword-intelligence-body { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .keyword-intelligence-heading { flex-direction: column; } .keyword-intelligence-summary { grid-template-columns: 1fr 1fr; } }


/* ALPHA 46.1 CLIENT KEYWORDS + CORE TRACKING */
.keyword-client-heading { align-items: end; }
.keyword-client-content { display: grid; gap: 18px; }
.keyword-client-snapshot, .core-keyword-panel, .keyword-client-empty { padding: 22px; }
.keyword-client-empty h3 { margin: 0 0 8px; }
.keyword-snapshot-select { display: grid; gap: 5px; min-width: 250px; }
.keyword-snapshot-select span, .core-keyword-form label > span { color: var(--muted); font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.keyword-snapshot-select select, .core-keyword-form input { min-height: 38px; border: 1px solid #d6dfe4; border-radius: 9px; background: #fff; color: var(--ink); padding: 8px 10px; font-size: 10px; outline: none; }
.keyword-snapshot-select select:focus, .core-keyword-form input:focus { border-color: #f0a36e; box-shadow: 0 0 0 3px rgba(243,115,33,.09); }
.core-keyword-heading { align-items: flex-start; }
.core-keyword-heading h3 { margin: 0 0 5px; font-size: 17px; }
.core-keyword-heading .muted { margin: 0; max-width: 760px; }
.core-keyword-form { display: grid; grid-template-columns: minmax(220px,1.4fr) minmax(160px,.7fr) minmax(200px,1fr) auto; gap: 10px; align-items: end; margin: 16px 0 8px; }
.core-keyword-form label { display: grid; gap: 6px; }
.core-keyword-table-wrap { margin-top: 14px; border: 1px solid #e8eef1; border-radius: 11px; }
.core-keyword-table { min-width: 940px; }
.core-keyword-table td:first-child small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.core-keyword-history { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.core-keyword-change { font-weight: 900; }
.core-keyword-change.good { color: var(--good); }
.core-keyword-change.bad { color: var(--bad); }
.core-keyword-remove { font-size: 9px; }
.director-theme .keyword-client-snapshot, .director-theme .core-keyword-panel, .director-theme .keyword-client-empty { background: rgba(13,34,46,.84); border-color: rgba(151,184,202,.14); }
.director-theme .keyword-snapshot-select span, .director-theme .core-keyword-form label > span { color: #7f98a7; }
.director-theme .keyword-snapshot-select select, .director-theme .core-keyword-form input { background: #102b3a; border-color: rgba(151,184,202,.18); color: #edf4f7; }
.director-theme .core-keyword-table-wrap { border-color: rgba(151,184,202,.1); }
@media (max-width: 1050px) { .core-keyword-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 650px) { .keyword-snapshot-select { min-width: 100%; width: 100%; } .core-keyword-form { grid-template-columns: 1fr; } }

/* Alpha 46.2 account-wide keyword performance + organic visibility */
.report-upload-history-row.account-report:disabled { opacity: 1; cursor: default; }
.report-upload-history-row.account-report:disabled:hover { border-color: #edf1f3; box-shadow: none; }
.core-keyword-form-account { grid-template-columns: minmax(260px, 1fr) auto; max-width: 680px; }
.core-keyword-period { margin-top: 10px; font-size: 9px; line-height: 1.5; }
.core-keyword-account-table { min-width: 1120px; }
.core-keyword-account-table td strong { display: block; }
.core-keyword-account-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 500; }
.organic-visibility-panel { padding: 22px; }
.organic-visibility-heading { align-items: flex-start; }
.organic-visibility-heading h3 { margin: 0 0 5px; font-size: 17px; }
.organic-visibility-heading .muted { margin: 0; max-width: 820px; }
.organic-visibility-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.organic-visibility-summary article { min-width: 0; padding: 14px; border: 1px solid #e8eef1; border-radius: 11px; background: #fbfcfd; }
.organic-visibility-summary span { display: block; color: var(--muted); font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.organic-visibility-summary strong { display: block; margin-top: 7px; font-size: 20px; letter-spacing: -.025em; }
.organic-visibility-summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.organic-parent-heading { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin: 20px 0 9px; }
.organic-parent-heading strong { font-size: 10px; }
.organic-parent-heading span { color: var(--muted); font-size: 8px; }
.organic-parent-list { display: grid; gap: 8px; }
.organic-parent-section { border: 1px solid #e8eef1; border-radius: 11px; background: #fff; overflow: hidden; }
.organic-parent-section > summary { list-style: none; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 13px 14px; cursor: pointer; }
.organic-parent-section > summary::-webkit-details-marker { display: none; }
.organic-parent-section > summary > div:first-child { min-width: 0; display: grid; gap: 3px; }
.organic-parent-section > summary > div:first-child strong { font-size: 10px; }
.organic-parent-section > summary > div:first-child span { color: var(--muted); font-size: 8px; }
.organic-parent-stats { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 8px; white-space: nowrap; }
.organic-parent-stats span strong { color: var(--ink); }
.organic-parent-stats i { color: var(--orange); font-style: normal; font-size: 15px; transition: transform .18s ease; }
.organic-parent-section[open] .organic-parent-stats i { transform: rotate(180deg); }
.organic-parent-table-wrap { border-top: 1px solid #edf1f3; }
.organic-parent-table { min-width: 760px; }
.organic-parent-empty { padding: 16px; border: 1px dashed #d7e1e6; border-radius: 11px; }
.director-theme .report-upload-history-row.account-report:disabled:hover { border-color: rgba(151,184,202,.1); }
.director-theme .organic-visibility-panel { background: rgba(13,34,46,.84); border-color: rgba(151,184,202,.14); }
.director-theme .organic-visibility-summary article, .director-theme .organic-parent-section { background: rgba(9,29,40,.58); border-color: rgba(151,184,202,.1); }
.director-theme .organic-visibility-summary span, .director-theme .organic-visibility-summary small, .director-theme .organic-parent-heading span, .director-theme .organic-parent-section > summary > div:first-child span, .director-theme .organic-parent-stats { color: #7f98a7; }
.director-theme .organic-parent-stats span strong { color: #dbe7ed; }
.director-theme .organic-parent-table-wrap { border-color: rgba(151,184,202,.1); }
.director-theme .organic-parent-empty { border-color: rgba(151,184,202,.18); }
@media (max-width: 1050px) { .organic-visibility-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .organic-parent-section > summary { align-items: flex-start; flex-direction: column; } }
@media (max-width: 650px) { .core-keyword-form-account { grid-template-columns: 1fr; } .organic-visibility-summary { grid-template-columns: 1fr 1fr; } .organic-parent-heading { align-items: flex-start; flex-direction: column; } .organic-parent-stats { flex-wrap: wrap; } }

/* Client access manager */
.client-access-panel { padding: 22px; }
.client-access-heading { align-items: center; }
.client-access-primary { display: flex; flex-wrap: wrap; gap: 5px 8px; align-items: center; margin: 14px 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--muted); font-size: 9px; }
.client-access-primary strong { color: var(--ink); }
.client-access-primary span { margin-left: auto; font-size: 8px; }
.client-access-primary.ready { border-color: rgba(54,145,93,.28); }
.client-access-primary.warning { border-color: rgba(203,126,37,.32); }
.client-access-form { display: grid; grid-template-columns: minmax(260px, 1.7fr) minmax(180px, .8fr) auto; gap: 12px; align-items: end; margin: 16px 0 8px; }
.client-access-note { margin: 8px 0 16px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.client-access-table { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; }
.client-access-row { display: grid; grid-template-columns: minmax(260px, 1.8fr) minmax(130px, .8fr) minmax(90px, .55fr) minmax(92px, auto); gap: 12px; align-items: center; min-height: 54px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--panel); }
.client-access-row:first-child { border-top: 0; }
.client-access-header { min-height: 36px; background: var(--soft); color: var(--muted); text-transform: uppercase; font-size: 7px; font-weight: 900; letter-spacing: .06em; }
#client-access-rows .client-access-row:first-child { border-top: 1px solid var(--line); }
.client-access-identity { display: grid; gap: 3px; min-width: 0; }
.client-access-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.client-access-identity span, .client-access-added { color: var(--muted); font-size: 8px; }
.client-access-role { font-size: 10px; font-weight: 800; }
.client-access-action { justify-self: end; }
.client-access-revoked { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.client-access-row.is-revoked { opacity: .62; }
.client-access-empty { display: grid; gap: 4px; padding: 22px; color: var(--muted); }
.client-access-empty strong { color: var(--ink); font-size: 12px; }
.client-access-empty span { font-size: 9px; }
.director-theme .client-access-panel { background: rgba(13,34,46,.84); border-color: rgba(151,184,202,.14); }
.director-theme .client-access-table { border-color: rgba(151,184,202,.14); }
.director-theme .client-access-row { background: rgba(9,29,40,.58); border-top-color: rgba(151,184,202,.1); }
.director-theme .client-access-header { background: rgba(25,55,68,.72); color: #8299a7; }
.director-theme .client-access-identity strong, .director-theme .client-access-role { color: #f4f8fa; }
.director-theme .client-access-note, .director-theme .client-access-identity span, .director-theme .client-access-added { color: #7892a1; }
.director-theme .client-access-primary { background: rgba(25,55,68,.55); border-color: rgba(151,184,202,.14); color: #7892a1; }
.director-theme .client-access-primary strong { color: #f4f8fa; }
@media (max-width: 900px) {
  .client-access-form { grid-template-columns: 1fr; }
  .client-access-table { overflow-x: auto; }
  .client-access-row { min-width: 720px; }
}

/* Alpha49 internal operations dashboard */
.executive-dashboard-section { display: grid; gap: 16px; margin-bottom: 22px; }
.executive-dashboard-active .executive-heading { margin-top: 0; margin-bottom: 6px; padding-bottom: 0; }
.executive-dashboard-active .executive-heading h2 { max-width: 650px; }
.executive-dashboard-active .executive-heading > .muted { max-width: 470px; }
.executive-scoreboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 10px 24px 2px; }
.executive-scoreboard-heading h3, .executive-panel-heading h3 { margin: 2px 0 4px; font-size: 21px; letter-spacing: -.025em; }
.executive-scoreboard-heading .muted { margin: 0; }
.executive-scoreboard-controls { display: flex; align-items: flex-end; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.executive-scoreboard-controls .executive-select-label { min-width: 150px; }
.executive-period-wrap { display: grid; gap: 5px; min-width: 170px; }
.executive-period-wrap > span { color: #7892a1; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.executive-period-badge { min-height: 34px; display: flex; align-items: center; padding: 8px 10px; border: 1px solid rgba(151,184,202,.18); border-radius: 9px; background: #102b3a; color: #dfeaf0; font-size: 9px; }
.executive-period-badge.is-projected { border-color: rgba(255,154,80,.28); color: #ffb37e; }
.executive-summary-cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.executive-summary-cards article, .executive-lifespan-cards article { padding: 16px; border: 1px solid rgba(151,184,202,.15); border-radius: 14px; background: linear-gradient(180deg, rgba(15,41,54,.94), rgba(10,31,42,.96)); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.executive-summary-cards span, .executive-lifespan-cards span { display: block; color: #839aa7; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.executive-summary-cards strong, .executive-lifespan-cards strong { display: block; margin-top: 8px; color: #f4f8fa; font-size: 24px; letter-spacing: -.035em; }
.executive-summary-cards small, .executive-lifespan-cards small { display: block; margin-top: 4px; color: #6f8997; font-size: 8px; line-height: 1.4; }
.executive-scoreboard-wrap { overflow-x: auto; border: 1px solid rgba(151,184,202,.14); border-radius: 16px; background: #0a202b; }
.executive-scoreboard { min-width: 1060px; }
.executive-scoreboard-row { display: grid; grid-template-columns: 34px minmax(150px,1.3fr) minmax(92px,.78fr) 58px repeat(3,minmax(88px,.76fr)) 74px 80px minmax(118px,.9fr); gap: 8px; align-items: center; min-height: 58px; padding: 10px 12px; border-top: 1px solid rgba(151,184,202,.1); color: #cbd9df; font-size: 9px; }
.executive-scoreboard-row:first-child { border-top: 0; }
.executive-scoreboard-row.is-top-1 { box-shadow: inset 3px 0 rgba(255,122,26,.8); background: linear-gradient(90deg, rgba(255,122,26,.055), transparent 24%); }
.executive-scoreboard-row.is-top-2 { box-shadow: inset 3px 0 rgba(255,122,26,.5); background: linear-gradient(90deg, rgba(255,122,26,.035), transparent 20%); }
.executive-scoreboard-row.is-top-3 { box-shadow: inset 3px 0 rgba(255,122,26,.28); }
.executive-scoreboard-header { min-height: 44px; background: rgba(21,51,64,.78); color: #7f98a7; text-transform: uppercase; font-size: 7px; font-weight: 900; letter-spacing: .06em; }
.executive-sort-button { appearance: none; border: 0; background: transparent; color: inherit; padding: 0; text-align: left; font: inherit; font-weight: inherit; text-transform: inherit; letter-spacing: inherit; line-height: 1.25; cursor: pointer; white-space: normal; }
.executive-sort-button:hover, .executive-sort-button.is-active { color: #d7e4ea; }
.executive-rank { color: #ff7a1a; font-size: 14px; }
.executive-person-link, .executive-team-link { appearance: none; border: 0; background: transparent; color: #f4f8fa; text-align: left; padding: 0; cursor: pointer; }
.executive-person-link { display: grid; gap: 2px; }
.executive-person-link strong { font-size: 11px; }
.executive-person-link small { color: #6f8997; font-size: 8px; }
.executive-person-link:hover strong, .executive-team-link:hover { color: #ff9a50; }
.executive-team-link { color: #cbd9df; font-size: 9px; }
.executive-total-billables { color: #fff; display: grid; gap: 2px; font-size: 11px; }
.executive-total-billables small { color: #6f8997; font-size: 7px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.executive-ar-link, .manager-ar-link { color: #ff9a50; font-weight: 900; text-decoration: none; }
.executive-ar-link:hover, .manager-ar-link:hover { text-decoration: underline; }
.executive-grid-two { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.7fr); gap: 14px; }
.executive-kpi-history-panel, .executive-lifespan-panel, .executive-retention-panel, .executive-teams-panel { padding: 20px; background: rgba(13,34,46,.84); border-color: rgba(151,184,202,.14); }
.executive-panel-heading { align-items: flex-end; }
.executive-select-label { display: grid; gap: 5px; min-width: 190px; color: #7892a1; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.executive-select-label select { border: 1px solid rgba(151,184,202,.18); border-radius: 9px; background: #102b3a; color: #edf4f7; padding: 9px 10px; font: inherit; text-transform: none; letter-spacing: 0; }
.executive-kpi-table { margin-top: 14px; overflow: hidden; border: 1px solid rgba(151,184,202,.1); border-radius: 11px; }
.executive-kpi-row { display: grid; grid-template-columns: minmax(120px,1.2fr) repeat(4,minmax(90px,.8fr)); gap: 10px; align-items: center; min-height: 39px; padding: 8px 10px; border-top: 1px solid rgba(151,184,202,.09); color: #cbd9df; font-size: 9px; }
.executive-kpi-row:first-child { border-top: 0; }
.executive-kpi-header { min-height: 32px; background: rgba(25,55,68,.62); color: #7f98a7; text-transform: uppercase; font-size: 7px; font-weight: 900; letter-spacing: .06em; }
.executive-kpi-row > span:first-child { display: grid; gap: 1px; }
.executive-kpi-row small { color: #607c8c; font-size: 7px; }
.executive-lifespan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.executive-retention-annual { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin: 14px 0 18px; }
.executive-retention-annual article { padding: 12px; border: 1px solid rgba(151,184,202,.1); border-radius: 11px; background: rgba(9,29,40,.58); }
.executive-retention-annual span { color: #ff9a50; font-size: 8px; font-weight: 900; }
.executive-retention-annual strong { display: block; margin-top: 5px; color: #f4f8fa; font-size: 11px; }
.executive-retention-annual small { display: block; margin-top: 4px; color: #7892a1; font-size: 8px; line-height: 1.35; }
.executive-lost-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin: 8px 0; color: #f4f8fa; }
.executive-lost-heading span { color: #7892a1; font-size: 8px; }
.executive-lost-clients { overflow: hidden; border: 1px solid rgba(151,184,202,.1); border-radius: 11px; }
.executive-lost-row { display: grid; grid-template-columns: minmax(150px,1.1fr) 120px 95px 80px minmax(260px,2fr); gap: 10px; align-items: start; padding: 10px 12px; border-top: 1px solid rgba(151,184,202,.09); color: #cbd9df; font-size: 9px; line-height: 1.45; }
.executive-lost-row:first-child { border-top: 0; }
.executive-lost-header { background: rgba(25,55,68,.62); color: #7f98a7; text-transform: uppercase; font-size: 7px; font-weight: 900; letter-spacing: .06em; }
.executive-lost-reason { color: #9fb1ba; }
.executive-director-teams { display: grid; gap: 9px; margin-top: 14px; }
.executive-team { border: 1px solid rgba(151,184,202,.11); border-radius: 12px; background: rgba(9,29,40,.58); overflow: hidden; }
.executive-team > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 13px 14px; cursor: pointer; }
.executive-team > summary::-webkit-details-marker { display: none; }
.executive-team > summary > div { display: grid; gap: 3px; }
.executive-team > summary strong { color: #f4f8fa; font-size: 11px; }
.executive-team > summary span { color: #7892a1; font-size: 8px; }
.executive-team-managers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 0 14px 14px; }
.executive-team-managers button { appearance: none; border: 1px solid rgba(151,184,202,.1); border-radius: 10px; background: #102b3a; color: #dbe7ed; padding: 11px; text-align: left; cursor: pointer; display: grid; gap: 3px; }
.executive-team-managers button:hover { border-color: rgba(255,122,26,.45); }
.executive-team-managers button span { font-size: 9px; font-weight: 900; }
.executive-team-managers button strong { font-size: 12px; color: #fff; }
.executive-team-managers button small { color: #7892a1; font-size: 7px; }
.manager-client-table { min-width: 1260px; }
.manager-client-row { grid-template-columns: minmax(210px,1.6fr) repeat(6,minmax(88px,.7fr)) minmax(72px,.55fr) minmax(90px,auto) minmax(100px,.8fr); }
@media (max-width: 1100px) { .executive-scoreboard-heading { align-items: flex-start; flex-direction: column; } .executive-scoreboard-controls { justify-content: flex-start; } .executive-summary-cards { grid-template-columns: 1fr 1fr; } .executive-grid-two { grid-template-columns: 1fr; } .executive-team-managers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .executive-summary-cards, .executive-lifespan-cards, .executive-retention-annual, .executive-team-managers { grid-template-columns: 1fr; } .executive-scoreboard-heading, .executive-panel-heading, .executive-lost-heading { align-items: flex-start; flex-direction: column; } }

/* Alpha50 onboarding control plane */
.onboarding-client-list { display: grid; gap: 10px; }
.onboarding-client-row { display: grid; grid-template-columns: minmax(220px,1.5fr) minmax(120px,.8fr) minmax(170px,1fr) minmax(170px,1fr) minmax(190px,1.1fr); gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid rgba(145,181,197,.14); border-radius: 14px; background: rgba(4,31,43,.42); }
.onboarding-client-row strong { display:block; }
.onboarding-client-row small { color: var(--muted, #91aab5); }
.onboarding-status-pill { display:inline-flex; width:max-content; border:1px solid rgba(145,181,197,.2); border-radius:999px; padding:4px 8px; font-size:11px; letter-spacing:.06em; text-transform:uppercase; }
.onboarding-status-pill[data-status="READY"] { color:#9be7b0; }
.onboarding-status-pill[data-status="NEEDS_ACTION"] { color:#ffb36b; }
.onboarding-status-pill[data-status="IN_PROGRESS"] { color:#9bcdf4; }
@media (max-width: 980px) { .onboarding-client-row { grid-template-columns: 1fr 1fr; } }
.onboarding-heading-status { display:flex; flex-direction:column; align-items:flex-end; gap:4px; text-align:right; }
.onboarding-connect-button { display:inline-flex; align-items:center; justify-content:center; min-height:34px; padding:7px 11px; border:1px solid rgba(255,145,58,.72); border-radius:9px; background:rgba(255,132,37,.08); color:#ffae67; font:inherit; font-weight:700; cursor:pointer; }
.onboarding-connect-button:hover:not(:disabled) { background:rgba(255,132,37,.16); }
.onboarding-connect-button:disabled { border-color:rgba(145,181,197,.18); color:var(--muted, #91aab5); background:transparent; cursor:not-allowed; opacity:.72; }
.onboarding-client-row > div:last-child small { display:block; margin-top:4px; }
@media (max-width: 720px) { .onboarding-heading-status { align-items:flex-start; text-align:left; } }


/* ALPHA72 interactive client trend */
.trend-chart {
  position: relative;
}

.trend-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.trend-value-label {
  font-size: 9px;
  opacity: .78;
}

.trend-date-label {
  font-size: 9px;
}

.trend-spend-dot {
  fill: #58a6ff;
  stroke: #0a2430;
  stroke-width: 1.5px;
}

.trend-hit {
  fill: transparent;
  cursor: crosshair;
  pointer-events: all;
  outline: none;
}

.trend-hit:focus {
  stroke: #ff7a1a;
  stroke-width: 1.5;
  fill: rgba(255, 122, 26, .10);
}

.trend-tooltip {
  position: absolute;
  z-index: 20;
  min-width: 175px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(5, 24, 34, .97);
  box-shadow: 0 12px 30px rgba(0,0,0,.30);
  color: var(--text);
  pointer-events: none;
}

.trend-tooltip strong {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
}

.trend-tooltip span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 4px;
  font-size: 11px;
}

.trend-tooltip em {
  color: var(--muted);
  font-style: normal;
}

.trend-tooltip b {
  color: var(--text);
  font-weight: 700;
}


/* ALPHA88.1W - DASHBOARD CONTRAST */

.director-theme
.portfolio-manager-section {
  border-left:
    2px solid
    rgba(243, 115, 33, .34);
}

.director-theme
.portfolio-manager-section:hover {
  border-left-color:
    rgba(243, 115, 33, .68);
}

.director-theme
.manager-client-row:not(.manager-client-header):hover,
.director-theme
.executive-scoreboard-row:not(.executive-scoreboard-header):hover {
  background:
    rgba(243, 115, 33, .055);
}

.director-theme
.portfolio-revenue-hero .eyebrow,
.director-theme
.portfolio-list-heading .eyebrow,
.director-theme
.executive-panel-heading .eyebrow {
  color: #ff9a58;
}

.director-theme
.manager-summary-revenue,
.director-theme
.manager-client-ec-revenue,
.director-theme
.executive-total-billables {
  color: #ffb27f;
}

.director-theme
.revenue-kpi-card.revenue-kpi-primary {
  box-shadow:
    inset 3px 0 0
      rgba(243, 115, 33, .90),
    inset 0 1px
      rgba(255, 255, 255, .03);
}

.client-strategy-link {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  color: #ff9a58;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .025em;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.client-strategy-link:hover {
  color: #ffd0b0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.client-strategy-link:focus-visible {
  outline:
    2px solid
    #f37321;
  outline-offset: 3px;
  border-radius: 3px;
}

.client-strategy-link[aria-busy="true"] {
  opacity: .72;
  pointer-events: none;
}

.executive-lost-row
> strong
> .client-strategy-link {
  margin-left: 0;
  font-size: inherit;
  font-weight: inherit;
}

/* Amazon Report Health - internal client workspace */
.report-health-heading {
  align-items: end;
}

.report-health-heading > p {
  max-width: 760px;
}

.report-health-content {
  display: grid;
  gap: 16px;
}

.report-health-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.report-health-summary-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(151,184,202,.14);
  border-radius: 14px;
  background: rgba(13,34,46,.84);
}

.report-health-summary-card > span {
  color: #91a7b4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.report-health-summary-card > strong {
  color: #f6fafb;
  font-size: 17px;
  line-height: 1.2;
}

.report-health-summary-card > small {
  color: #758e9c;
  font-size: 10px;
  line-height: 1.45;
}

.report-health-source-grid {
  display: grid;
  gap: 16px;
}

.report-health-source-panel {
  padding: 22px;
}

.report-health-source-heading {
  align-items: flex-start;
}

.report-health-source-heading .muted {
  margin: 5px 0 0;
}

.report-health-subheading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 10px;
}

.report-health-subheading > div {
  display: grid;
  gap: 3px;
}

.report-health-subheading strong {
  font-size: 12px;
}

.report-health-subheading span {
  color: #758e9c;
  font-size: 10px;
}

.report-health-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(151,184,202,.12);
  border-radius: 12px;
}

.report-health-table {
  min-width: 1040px;
}

.report-health-row {
  display: grid;
  grid-template-columns:
    minmax(190px, 1.7fr)
    minmax(125px, .9fr)
    minmax(120px, .9fr)
    minmax(120px, .9fr)
    minmax(70px, .55fr)
    minmax(65px, .5fr)
    minmax(135px, 1fr)
    minmax(135px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid rgba(151,184,202,.09);
  color: #c6d4db;
  font-size: 11px;
}

.report-health-row:first-child {
  border-top: 0;
}

.report-health-row-head {
  background: rgba(8,27,37,.72);
  color: #758e9c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.report-health-name {
  display: grid;
  gap: 3px;
}

.report-health-name strong {
  color: #eef5f7;
  font-size: 11px;
}

.report-health-name small {
  color: #758e9c;
  font-size: 9px;
}

.report-health-diagnostic {
  color: #edb366;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.report-health-row .source-state {
  display: inline-block;
  font-style: normal;
  white-space: nowrap;
}

.report-health-catalog {
  margin-top: 16px;
  border: 1px solid rgba(151,184,202,.12);
  border-radius: 12px;
  background: rgba(8,27,37,.34);
}

.report-health-catalog > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.report-health-catalog > summary::-webkit-details-marker {
  display: none;
}

.report-health-catalog > summary > span:first-child {
  display: grid;
  gap: 3px;
}

.report-health-catalog > summary strong {
  color: #dce8ec;
  font-size: 11px;
}

.report-health-catalog > summary small,
.report-health-catalog > summary > span:last-child {
  color: #758e9c;
  font-size: 10px;
}

.report-health-candidate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 14px;
}

.report-health-candidate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(151,184,202,.09);
  border-radius: 10px;
  background: rgba(13,34,46,.5);
}

.report-health-candidate > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.report-health-candidate strong {
  overflow: hidden;
  color: #dce8ec;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-health-candidate span {
  color: #758e9c;
  font-size: 9px;
}

.report-health-candidate .source-state {
  flex: 0 0 auto;
  font-style: normal;
}

.report-health-empty,
.report-health-empty-row {
  color: #91a7b4;
}

.report-health-empty {
  display: grid;
  gap: 5px;
  padding: 22px;
}

.report-health-empty-row {
  padding: 18px;
  border: 1px solid rgba(151,184,202,.1);
  border-radius: 10px;
  font-size: 11px;
}

.report-health-footnote {
  margin: 0;
  color: #758e9c;
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .report-health-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-health-candidate-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .report-health-summary-grid {
    grid-template-columns: 1fr;
  }

  .report-health-source-panel {
    padding: 16px;
  }
}

/* Inventory source freshness uses the same client workspace panels. */
.inventory-report-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.inventory-report-kpis .kpi-card { padding: 22px; }
.inventory-report-kpis h3 { font-size: 32px; margin: 12px 0; }
.inventory-report-kpis h3 small { font-size: 17px; color: var(--muted); }
.inventory-report-kpis .inventory-refresh-time { font-size: 19px; line-height: 1.5; }
.inventory-empty { padding: 30px; margin-top: 20px; }
.inventory-report-table { overflow-x: auto; }
.inventory-report-table table { width: 100%; border-collapse: collapse; min-width: 640px; text-align: left; }
.inventory-report-table th { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.inventory-report-table th, .inventory-report-table td { padding: 17px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.inventory-report-table tr:last-child td { border-bottom: 0; }
.inventory-report-note { line-height: 1.7; padding: 12px; max-width: 940px; }
@media (max-width: 780px) { .inventory-report-kpis { grid-template-columns: 1fr; } }
