/* Shared palette: color properties only; existing layout styles stay in place. */

:root, :host {
  --surface: #fff;
  --surface-soft: #f0f6ff;
  --border: #dce7f5;
  --line: #dce7f5;
  --muted: #64748b;
  --blue: #126ce5;
  --blue-soft: #eaf3ff;
  --teal: #126ce5;
  --green: #07844b;
  --green-soft: #e8f9ef;
  --red: #cf304c;
  --warning: #b8510c;
  --warning-bg: #fff4e5;
  --danger: #cf304c;
  --danger-bg: #fff0f2;
}
:root { color: #142643; background-color: #f6faff; }
body { background-color: #f6faff; }
.workspace-shell, .estimate-surface, .pp-workspace { color: #142643; }
.brand-mark:not(.brand .brand-mark) { color: #126ce5; }
.brand .brand-mark { background-color: #126ce5; color: #fff; }
.user-pill { background-color: #eaf3ff; color: #0961cf; }
.freshness { background-color: #e8f9ef; color: #07844b; }
.freshness.stale { background-color: #fff4e5; color: #b8510c; }

/* Main actions and selected conditions. Preserve existing sizes and borders. */
.primary, .button.primary, .pp-primary, .org-primary, .pk-primary {
  background-color: #126ce5 !important;
  border-color: #126ce5 !important;
  color: #fff !important;
}
.primary:hover, .button.primary:hover, .pp-primary:hover, .org-primary:hover, .pk-primary:hover {
  background-color: #095cc8 !important;
  border-color: #095cc8 !important;
}
.pill-button.primary, .pill-button.secondary {
  background-color: #eaf3ff !important;
  border-color: #bed8ff !important;
  color: #0961cf !important;
}
.pill-button.primary:hover, .pill-button.secondary:hover { background-color: #dcecff !important; }
.button.active, .quick button.active, .view-switch .button.active,
.pp-record-tabs button.active, .wc-nav-item.is-active,
.olf-tabs .is-active, .olf-filter .is-active {
  background-color: #eaf3ff !important;
  border-color: #a5caff !important;
  color: #0961cf !important;
}
.tabs button.active { color: #0961cf !important; border-color: #126ce5 !important; }
input:focus, select:focus, textarea:focus { outline-color: #8cbbff; }
input[type="checkbox"], input[type="radio"], progress { accent-color: #126ce5; }

/* The navigation stays quiet; active pages and section icons carry the color. */
.workspace-sidebar { background-color: #fff !important; border-color: #dce7f5 !important; }
.workspace-sidebar .ws-sidebar-title { color: #142643; }
.workspace-sidebar .ws-section { color: #425875; }
.workspace-sidebar .ws-section:hover,
.workspace-sidebar .ws-sidebar-group.current > .ws-section:hover,
.workspace-sidebar .ws-subpages a:hover { color: #0961cf; background-color: #f0f6ff; }
.workspace-sidebar .ws-section-icon { color: #1677ff; }
.workspace-sidebar .ws-sidebar-group:nth-child(1) .ws-section-icon { color: #8b5cf6; }
.workspace-sidebar .ws-sidebar-group:nth-child(3) .ws-section-icon { color: #e47b14; }
.workspace-sidebar .ws-sidebar-group:nth-child(4) .ws-section-icon,
.workspace-sidebar .ws-sidebar-group:nth-child(7) .ws-section-icon { color: #0ca563; }
.workspace-sidebar .ws-subpages a.active,
.workspace-sidebar .ws-subpages a.active:hover { color: #0961cf !important; background-color: #eaf3ff !important; }
.workspace-sidebar .ws-subpages a.active::before { background-color: #1677ff; }
.workspace-sidebar.is-collapsed .ws-sidebar-group.current > .ws-section { background-color: #eaf3ff; }
.ws-mobile-trigger, .ws-collapse { color: #0961cf; background-color: #eaf3ff; border-color: #d0e2fb; }

/* Summaries, table headers and existing chart colors. */
thead th { background-color: #eff5ff; color: #334c70; }
tbody tr:hover > td { background-color: #f5f9ff; }
.kpi-label svg, .eyebrow, .pp-eyebrow, .pw-eyebrow, .olf-eyebrow { color: #0961cf; }
.metric.profit, .stat.net { background-color: #edf5ff; border-color: #bed8ff; }
.metric.profit strong, .positive { color: #07844b !important; }
.negative { color: #cf304c !important; }
.pw-goal-card { background-image: linear-gradient(125deg, #155bd1, #1979df); }
.pw-goal-card .pw-eyebrow, .pw-goal-label, .pw-goal-metrics,
.pw-goal-gap, .pw-goal-form label, .pw-goal-foot { color: #e1eeff; }
.pw-goal-card input::placeholder { color: #c1dcff; }
.pw-goal-card .primary, .pk-hero .pk-primary {
  background-color: #fff !important; border-color: #fff !important; color: #095cc8 !important;
}
.pw-goal-card .primary:hover, .pk-hero .pk-primary:hover { background-color: #eaf3ff !important; }
.pw-status { color: #e1eeff; }
.pw-status-pending { background-color: #fff1ce; color: #865000; }
.pk-hero { background-image: linear-gradient(120deg, #155bd1, #1979df); }
.pk-eyebrow { color: #e1eeff; }
.pp-stat-focus { border-top-color: #16bb72; }
.pp-stat-plan { border-top-color: #3594ff; }
.pp-stat-issue { border-top-color: #ff9124; }
.pp-stat-review { border-top-color: #9563f4; }
.pp-progress > i, .pp-progress > span, .query-progress[data-state="complete"] .query-progress-fill {
  background-color: #16bb72;
}

/* Status meanings remain green / blue / orange / violet / coral. */
.pp-tag.plan, .pp-status.doing { background-color: #eaf3ff; color: #0961cf; }
.pp-tag.action, .pp-status.done, .pp-phase.testing, .pp-phase.scaling,
.badge.complete, .pk-state.underway, .pk-state.published,
.wp-view-state.is-viewed, .wp-progress-badge { background-color: #e8f9ef; color: #07844b; }
.pp-tag.issue, .pp-focus.active, .status.pending,
.pk-state.review, .pk-state.confirm, .pk-state.funding,
.wp-view-state.is-pending, .wp-progress-badge.is-down { background-color: #fff0dc; color: #b8510c; }
.pp-tag.review { background-color: #f1eaff; color: #7745d8; }
.pp-phase.preparing { background-color: #eaf3ff; color: #0961cf; }
.notice.warning { background-color: #fff4e5; border-color: #ffd29f; color: #b8510c; }
.notice.error { background-color: #fff0f2; border-color: #ffc0cb; color: #cf304c; }
.olf-publication.is-pending { background-color: #fff4e5; border-color: #ffd29f; }
.olf-publication.is-pending > span { color: #b8510c; }
.olf-work-summary { background-color: #f0f6ff; border-color: #d0e2fb; }
.olf-work-summary > strong, .olf-work-summary b { color: #0961cf; }
.query-progress[data-state="complete"] { background-color: #e8f9ef; border-color: #b6ebce; }
.query-progress[data-state="complete"] [data-progress-label] { color: #07844b; }
.query-progress[data-state="error"] .query-progress-fill { background-color: #ee526b; }

/* Reuse the existing searchable picker in documents and open shadow roots. */
.selection-search-popup { border-color: #c5dcff !important; color: #243d60 !important; }
.selection-search-head input:focus, .selection-search-multi:focus { border-color: #1677ff !important; }
.selection-search-list > .selection-search-option:hover,
.selection-search-list > .selection-search-option.is-active { background-color: #eaf3ff !important; }
.selection-search-list > .selection-search-option[aria-selected="true"] { color: #0961cf !important; }

