/* xEO Explorer visual language, adapted to the full Prospect Studio workspace.
   Loaded after the layout stylesheet: existing grids and interactions stay shared. */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/xeo/Poppins-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Inter Footer";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/xeo/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Footer";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/xeo/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body.xeo-theme {
  --mk-ink: #111f3f;
  --mk-ink-2: #26375c;
  --mk-muted: #63708a;
  --mk-line: #dce3ed;
  --mk-cloud: #f3f6fa;
  --mk-paper: #fbfcfe;
  --mk-coral: #ff5c46;
  --mk-coral-dark: #e84733;
  --mk-lime: #cfff57;
  --mk-blue: #5567ff;
  --mk-radius: 22px;
  --mk-shadow: 0 22px 60px rgb(17 31 63 / 13%);
  --ink: var(--mk-ink);
  --muted: var(--mk-muted);
  --primary: var(--mk-blue);
  --surface: #fff;
  --line: var(--mk-line);
  --bg: var(--mk-paper);
  --radius: var(--mk-radius);
  --header-height: 80px;
  --sidebar-width: 228px;
  --theme-font: Inter, "Avenir Next", Avenir, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --panel-shadow: 0 5px 24px rgb(17 31 63 / 4%);
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(ellipse at top right, rgb(85 103 255 / 17%), transparent 65%), var(--bg);
  background-attachment: fixed;
  font-family: var(--theme-font);
  font-size: 15px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  accent-color: var(--primary);
  color-scheme: light;
}

body.xeo-theme :is(h1, h2, h3) {
  color: var(--ink);
  font-weight: 760;
  letter-spacing: -.04em;
  line-height: 1.2;
}
body.xeo-theme h1 { font-size: clamp(1.6rem, 2.5vw, 2.4rem); }
body.xeo-theme :is(.targeting-heading, .research-results-title, .sticky-title) h1 {
  color: var(--ink);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}
body.xeo-theme :is(.studio-heading h1, .studio-heading h2, .aside-title h2, .research-funnel-heading h2) {
  color: var(--ink);
  font-size: 1.3rem;
}
body.xeo-theme :is(.card h2, .filter-title h2) { color: var(--ink); font-size: 1.05rem; letter-spacing: -.025em; }
body.xeo-theme :is(.eyebrow, .section-number) { color: var(--mk-coral-dark); }
body.xeo-theme :is(.field, .studio-field, .facts dt, .check) { color: var(--mk-ink-2); }
body.xeo-theme :is(.intro, .muted, .studio-heading p, .research-results-title p,
  .aside-title p, .preview-method, .research-limit, .target-reset-help, .scoring-card > p,
  .targeting-heading p, .confidence-control label, .profile-menu-heading, .profile-option small,
  .preview-section-title small, .preview-bar small, .matching-company small,
  .target-kpi small, .research-kpi-foot small, .email-kpi small, .studio-prospect-name small,
  .studio-list-footer, .studio-empty, .studio-preview-version, .studio-check small,
  .studio-editor-footer, .studio-save-state, .studio-action-hint, .studio-template-dialog p, .research-industry,
  .research-filter-drawer > summary > span, .research-advanced-filters > label) { color: var(--muted); }
body.xeo-theme :focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
body.xeo-theme .skip-link { background: var(--ink); color: #fff; border-radius: 10px; }

/* One navigation treatment on every tab, including the auxiliary screens. */
body.xeo-theme .app-header {
  height: var(--header-height);
  padding: 12px 26px;
  background: rgb(251 252 254 / 85%);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
body.xeo-theme .flow-brand { color: var(--ink); font-size: 23px; gap: 10px; letter-spacing: -.04em; }
body.xeo-theme .flow-brand b { color: var(--mk-coral-dark); font-weight: 850; }
body.xeo-theme .flow-brand-logo { width: 39px; height: 39px; object-fit: contain; flex-shrink: 0; }
body.xeo-theme .global-search { background: var(--mk-cloud); border-color: var(--line); border-radius: 15px; }
body.xeo-theme .global-search input { background: transparent; font-size: 13px; }
body.xeo-theme :is(.global-search .icon, .notification-link, .account-menu .icon) { color: var(--muted); }
body.xeo-theme .notification-link > span { background: var(--mk-coral); }
body.xeo-theme .avatar { color: var(--ink); background: var(--mk-lime); border-color: #fff; }
body.xeo-theme .flow-sidebar {
  padding: 16px 10px;
  background: rgb(251 252 254 / 92%);
  border-right: 1px solid var(--line);
}
body.xeo-theme .side-link { color: var(--muted); font-size: 14px; padding: 13px 8px; gap: 10px; margin-bottom: 10px; border-radius: 14px; }
body.xeo-theme .side-link .icon { width: 24px; height: 24px; flex-shrink: 0; color: inherit; }
body.xeo-theme .side-link > span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
body.xeo-theme .side-link:hover { color: var(--ink); background: var(--mk-cloud); }
body.xeo-theme .side-link.active { color: var(--mk-coral-dark); background: #fff0ec; }
body.xeo-theme .side-link.active .icon { color: inherit; }
body.xeo-theme :is(.sidebar-bottom, .sidebar-bottom a) { color: var(--muted); }
body.xeo-theme .workspace-indicator { background: var(--primary); }
body.xeo-theme #main { --workspace-gutter: clamp(16px, 2vw, 30px); padding: 0 var(--workspace-gutter) 28px; }
body.xeo-theme .top-chrome { position: sticky; top: var(--header-height); z-index: 45; margin: 0 calc(-1 * var(--workspace-gutter)) 8px; padding: 4px 10px; border-bottom: 1px solid var(--line); background: rgb(251 252 254 / 97%); }
body.xeo-theme .workflow-tabs { padding: 22px 0 24px; gap: 0; }
body.xeo-theme .workflow-tab { color: var(--muted); gap: 7px; }
body.xeo-theme .workflow-tab strong { color: inherit; font-size: 14px; font-weight: 650; }
body.xeo-theme .workflow-tab:first-child strong { color: inherit; }
body.xeo-theme .workflow-tab.active strong { color: inherit; }
body.xeo-theme .workflow-tab .step-circle { width: 38px; height: 38px; font-size: 15px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
body.xeo-theme .workflow-tab::after { top: 19px; left: calc(50% + 27px); width: calc(100% - 54px); height: 1px; background: var(--line); }
body.xeo-theme .workflow-tab:first-child:not(.active)::after { background: var(--line); }
body.xeo-theme .workflow-tab.active::after { background: linear-gradient(90deg, var(--mk-coral), var(--line)); }
body.xeo-theme .workflow-tab:hover { background: transparent; color: var(--mk-coral-dark); }
body.xeo-theme .workflow-tab.active { color: var(--mk-coral-dark); }
body.xeo-theme .workflow-tab.active .step-circle { background: var(--mk-coral); color: var(--ink); border-color: var(--mk-coral); box-shadow: 0 5px 16px rgb(255 92 70 / 18%); }

/* Paper surfaces and the rounded cards from the supplied stylesheet. */
body.xeo-theme :is(.card, .filter-card, .scoring-card, .target-actions, .target-preview,
  .confidence-card, .target-kpi, .research-kpi, .email-kpi, .stat-card,
  .research-results, .research-funnel, .studio-panel, [data-studio-panel].is-collapsed,
  .targeting-heading, .studio-editor-actions) {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--panel-shadow);
}
body.xeo-theme .targeting-heading { padding: 17px; }
body.xeo-theme .targeting-heading { display: grid; grid-template-columns: auto minmax(140px, 1fr) minmax(0, 3fr); }
body.xeo-theme .targeting-heading > div { min-width: 0; }
body.xeo-theme .targeting-heading > .targeting-heading-actions { display: flex; flex-wrap: nowrap; justify-content: flex-end; align-items: center; gap: 8px; min-width: 0; }
body.xeo-theme .targeting-heading-actions .button { min-width: 0; white-space: normal; }
body.xeo-theme .targeting-heading-actions .load-template { margin: 0; }
body.xeo-theme .targeting-heading-actions .compact { min-height: 34px; padding: 7px 10px; font-size: 13px; }
body.xeo-theme .targeting-heading-actions .button:is(.targeting-save, .targeting-share) { width: 36px; height: 36px; padding: 7px; flex: 0 0 36px; justify-self: end; align-self: center; }
body.xeo-theme .targeting-heading-actions [data-save-segment] > .icon:last-child { width: 15px; }
body.xeo-theme :is(.targeting-layout, .targeting-aside, .filter-grid, .filter-column) { gap: 18px; }
body.xeo-theme .targeting-layout { grid-template-columns: minmax(0, 5.2fr) minmax(170px, 1fr); }
body.xeo-theme .targeting-aside { grid-template-columns: minmax(0, 1fr); }
body.xeo-theme .targeting-aside :is(.research-actions, .action-pair, .target-kpis) { grid-template-columns: minmax(0, 1fr); }
body.xeo-theme .targeting-aside .target-kpis { grid-column: auto; grid-row: auto; padding: 0; }
body.xeo-theme .targeting-aside .button { white-space: normal; min-width: 0; }
body.xeo-theme .targeting-aside .target-kpi:not(.target-sources) { display: block; }
body.xeo-theme .targeting-aside .target-kpi > .kpi-icon { margin-bottom: 8px; }
body.xeo-theme .target-actions .aside-title { flex-wrap: wrap; }
body.xeo-theme .target-actions .save-target-link { width: 100%; }
body.xeo-theme .target-actions .research-actions { row-gap: 18px; margin-top: 18px; margin-bottom: 16px; }
body.xeo-theme .target-actions .research-limit { display: block; margin-bottom: 20px; }
body.xeo-theme .target-actions .action-pair { margin-top: 0; }
body.xeo-theme :is(.filter-card, .target-actions, .target-preview, .confidence-card) { padding: 16px; }
body.xeo-theme .scoring-card { padding: 16px; }
body.xeo-theme :is(.filter-number, .kpi-icon,
  .research-kpi-icon, .email-kpi-icon, .studio-heading > .icon) {
  color: var(--primary); background: #eef0ff; border-radius: 14px;
}
body.xeo-theme :is(.heading-target, .research-heading-icon) { color: var(--mk-coral-dark); background: #fff0ec; border-radius: 14px; }
body.xeo-theme :is(.kpi-icon.violet, .research-kpi.violet .research-kpi-icon) { color: var(--primary); background: #eef0ff; }
body.xeo-theme :is(.research-kpi.green .research-kpi-icon, .email-kpi.green .email-kpi-icon) { color: #23734d; background: #efffd2; }
body.xeo-theme :is(.research-kpi.red .research-kpi-icon, .email-kpi.red .email-kpi-icon) { color: #b93c2b; background: #fff0ec; }
body.xeo-theme .email-kpi.amber .email-kpi-icon { color: #876321; background: #fff6df; }
body.xeo-theme :is(.filter-title > .icon, .aside-title > .icon, .preview-section-title > .icon,
  .preview-companies-heading .icon, .weight-control .icon, .weight-control output,
  .confidence-control output, .studio-support > summary > .icon) { color: var(--primary); }
body.xeo-theme :is(.stat-card strong, .target-kpi strong, .email-kpi strong, .research-kpi-content > strong,
  .matching-total strong, .studio-prospect-name strong, .studio-preview-message strong,
  .email-selection-tools > strong, .studio-editor-actions > div, .research-funnel-stage > span) { color: var(--ink); }
body.xeo-theme :is(.research-kpi-label, .email-kpi-label) { white-space: normal; font-size: 13px; }
body.xeo-theme :is(.research-kpi-foot, .research-kpi-foot small) { white-space: normal; flex-wrap: wrap; }
body.xeo-theme :is(.matching-total, .weight-control, .workflow-overview > div, .research-funnel-stage,
  .research-funnel-stage.stage-3, .research-funnel-stage.stage-4, .research-command-row,
  .research-filter-drawer, .email-selection-tools, .studio-preview-message, .contact-address) {
  background: var(--mk-cloud); color: var(--mk-ink-2); border-color: var(--line); border-radius: 12px;
}
body.xeo-theme .research-command-row { border-radius: 0; }
body.xeo-theme .research-funnel-stage:not(:last-child)::after { color: var(--mk-coral); }

/* Lime calls to action, quiet secondary controls, visible keyboard focus. */
body.xeo-theme .button {
  font-family: "Poppins", var(--theme-font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  min-height: 40px;
  border-radius: 15px;
  padding: 10px 13px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
body.xeo-theme .button.primary {
  background: var(--mk-lime); color: var(--ink); border-color: var(--mk-lime);
  box-shadow: 0 9px 26px rgb(124 92 255 / 18%);
}
body.xeo-theme .button.primary:hover:not(:disabled):not([aria-disabled="true"]) {
  background: #dcff82; border-color: #dcff82; color: var(--ink);
  transform: translateY(-2px); box-shadow: 0 15px 34px rgb(124 92 255 / 25%); filter: none;
}
body.xeo-theme .button.primary:active:not(:disabled) { transform: translateY(-1px); }
body.xeo-theme .button.secondary { background: #fff; border-color: var(--line); color: var(--mk-ink-2); box-shadow: none; }
body.xeo-theme :is(.button.soft, .research-actions .new-search) { background: #eef0ff; border-color: #dce0ff; color: #3e4dcc; box-shadow: none; }
body.xeo-theme :is(.button.secondary, .button.soft, .research-actions .new-search):hover:not(:disabled) { background: var(--mk-cloud); border-color: #bdc8db; filter: none; }
body.xeo-theme :is(.text-button, .save-target-link, .target-management .text-button,
  .email-top-actions > a, .studio-preview-actions .text-button, .research-profile-all .text-button,
  .tag-pill button, .tag-entry button, .custom-sector button) { color: #3e4dcc; }
body.xeo-theme .text-button.danger { color: #ae3746; }
body.xeo-theme .button:disabled { box-shadow: none; transform: none; }
body.xeo-theme :is(.research-table .button, .studio-ai-tools .button) { font-size: 13px; min-height: 34px; padding: 7px 10px; border-radius: 11px; }
body.xeo-theme .research-actions .launch-search { min-height: 64px; }
body.xeo-theme .research-actions .launch-search > span { font-size: 13px; }

body.xeo-theme :is(input, textarea, select) { font-family: var(--theme-font); color: var(--ink); border-color: var(--line); border-radius: 11px; }
body.xeo-theme .campaign-form :is(input, textarea, select) { color: var(--ink); border-color: var(--line); font-weight: 400; }
body.xeo-theme :is(.studio-field input, .studio-field select, .studio-preview-nav select,
  .studio-preview-version select, .research-advanced-filters select, .research-funnel-heading select) { color: var(--ink); border-color: var(--line); }
body.xeo-theme :is(input, textarea)::placeholder { color: var(--muted); }
body.xeo-theme .campaign-form :is(input, textarea)::placeholder { color: var(--muted); }
body.xeo-theme :is(input:not([type="checkbox"]):not([type="range"]), textarea, select):focus-visible {
  outline: 3px solid var(--primary); outline-offset: 2px; border-color: var(--primary); box-shadow: none;
}
body.xeo-theme :is(input[type="checkbox"], input[type="range"]) { accent-color: var(--primary); }
body.xeo-theme :is(.tag-editor, .choice, .choice-option, .custom-sector, .weight-control,
  .studio-search, .studio-message-box, .matching-company, .confidence-control output) { border-color: var(--line); border-radius: 11px; }
body.xeo-theme :is(.choice, .profile-option, .company-profile-menu legend, .preview-section-title, .preview-bar, .matching-company strong) { color: var(--mk-ink-2); }
body.xeo-theme :is(.tag-pill, .studio-variable-chips button, .studio-suggestions button,
  .studio-panel-toggle, .studio-panel-rail, .email-selection-tools button,
  .studio-format-bar select, .matching-company > span) { background: #eef0ff; color: #3e4dcc; border-color: #dce0ff; border-radius: 9px; }
body.xeo-theme :is(.choice, .choice-option):has(input:checked) { background: #eef0ff; border-color: #c3caff; }
body.xeo-theme :is(.choice, .profile-option):hover { background: var(--mk-cloud); }
body.xeo-theme :is(.choice-remove, .company-profile-dropdown > summary, .info-trigger) { color: var(--muted); }
body.xeo-theme .info-trigger:hover { background: #eef0ff; color: var(--primary); }
body.xeo-theme :is(.studio-message-box textarea, .email-preview) { font-family: var(--theme-font); color: var(--mk-ink-2); line-height: 1.65; }
body.xeo-theme .studio-format-bar { background: var(--mk-cloud); border-color: var(--line); }
body.xeo-theme .studio-format-bar :is(button, .icon) { color: #3e4dcc; }
body.xeo-theme .studio-prospect { border-color: var(--line); border-radius: 12px; }
body.xeo-theme .studio-prospect.selected { background: #f4f5ff; border-color: #c3caff; }
body.xeo-theme .studio-prospect.focused { box-shadow: inset 3px 0 var(--primary); }
body.xeo-theme .studio-avatar { background: var(--ink); color: var(--mk-lime); }
body.xeo-theme :is(.studio-operation, .studio-apply-notice) { background: #eef0ff; color: #3e4dcc; border-color: #dce0ff; border-radius: 12px; }
body.xeo-theme .studio-apply-notice > .icon { color: var(--primary); }
body.xeo-theme .studio-operation[data-status="error"] { color: #a43850; background: #fff0f1; border-color: #f2d6da; }
body.xeo-theme :is(.studio-operation-spinner, .spinner) { border-color: #dce0ff; border-top-color: var(--primary); }

/* Tables retain horizontal scrolling; status colors keep their meaning. */
body.xeo-theme .table-wrap { position: relative; }
body.xeo-theme :is(table, .research-table) { color: var(--ink); }
body.xeo-theme :is(th, .research-table th) { color: var(--mk-ink-2); background: var(--mk-cloud); border-color: var(--line); }
body.xeo-theme :is(td, .research-table td) { border-color: #e9edf3; }
body.xeo-theme .research-table tbody tr:hover { background: #f8f9ff; }
body.xeo-theme .research-table tbody tr:has(.row-choice:checked) { background: #eef0ff; box-shadow: inset 3px 0 var(--primary); }
body.xeo-theme :is(.research-status, .studio-prospect-state) { background: #fff6df; color: #876321; }
body.xeo-theme :is(.badge, .research-score, .studio-score, .research-status.contacted) { background: #eef0ff; color: #3e4dcc; border-color: #dce0ff; }
body.xeo-theme .research-score.low { background: #fff6df; color: #876321; }
body.xeo-theme :is(.research-score.high, .studio-score.high, .research-status.ready,
  .studio-prospect-state.ready) { background: #eaf7ee; color: #23734d; }
body.xeo-theme :is(.research-status.replied, .studio-prospect-state.sent) { background: #f2edff; color: #7250a5; }
body.xeo-theme :is(.research-status.rejected, .research-status.opted-out, .studio-prospect-state.incomplete) { background: var(--mk-cloud); color: var(--muted); }
body.xeo-theme .studio-check > .icon { color: #23734d; }
body.xeo-theme .studio-check > b { background: #fff6df; color: #876321; }
body.xeo-theme .studio-check > b.issue { background: #fff6df; color: #876321; }
body.xeo-theme .studio-check > b.checked { background: #eaf7ee; color: #23734d; }
body.xeo-theme :is(.preview-bar progress, .research-funnel-stage > progress) { background: #e3e7f2; }
body.xeo-theme progress::-webkit-progress-bar { background: #e3e7f2; border-radius: 7px; }
body.xeo-theme progress::-webkit-progress-value { background: var(--primary); border-radius: 7px; }
body.xeo-theme progress::-moz-progress-bar { background: var(--primary); border-radius: 7px; }
body.xeo-theme .research-funnel-stage.stage-3 > progress::-webkit-progress-value { background: #39845b; }
body.xeo-theme .research-funnel-stage.stage-3 > progress::-moz-progress-bar { background: #39845b; }
body.xeo-theme .research-funnel-stage.stage-4 > progress::-webkit-progress-value { background: var(--mk-coral); }
body.xeo-theme .research-funnel-stage.stage-4 > progress::-moz-progress-bar { background: var(--mk-coral); }
body.xeo-theme .empty { border-color: var(--line); border-radius: var(--radius); background: #fff; }
body.xeo-theme :is(.empty-icon, .brand-icon) { color: var(--mk-coral); }
body.xeo-theme .notice { border-radius: 13px; }

/* Shared overlays, including fragments loaded into the company/email dialog. */
body.xeo-theme :is(.detail-modal, .segments-modal, .studio-template-dialog) {
  color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--mk-shadow); font-family: var(--theme-font);
}
body.xeo-theme dialog::backdrop { background: rgb(17 31 63 / 42%); backdrop-filter: blur(5px); }
body.xeo-theme :is(.account-dropdown, .company-profile-menu, .research-menu-panel) {
  background: #fff; color: var(--ink); border-color: var(--line); border-radius: 15px; box-shadow: var(--mk-shadow);
}
/* Fixed menu children must not contribute offscreen width while details is closed. */
body.xeo-theme .research-menu:not([open]) > .research-menu-panel { display: none; }
body.xeo-theme :is(.info-tooltip, .research-info .info-tooltip, .studio-info .info-tooltip) {
  color: #fff; background: var(--ink); border-color: var(--ink); border-radius: 12px;
  box-shadow: var(--mk-shadow); font-family: var(--theme-font);
}
body.xeo-theme :is(.research-menu-panel a, .research-menu-panel button, .research-command-row > .research-batch-history > summary,
  .research-filter-drawer > summary, .research-prompts > summary, .studio-support > summary, .studio-check) { color: var(--mk-ink-2); }
body.xeo-theme .modal-close { border-color: var(--line); color: var(--muted); }
body.xeo-theme .page-footer { color: var(--muted); border-color: var(--line); font-family: "Inter Footer", var(--theme-font); font-size: 13px; line-height: 1.6; }
body.xeo-theme.standalone #main { max-width: 720px; }
body.xeo-theme .login-card { box-shadow: var(--mk-shadow); }

body.xeo-theme .sidebar-first-row { display: contents; }
body.xeo-theme .sidebar-toggle {
  display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 36px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted);
}
body.xeo-theme .sidebar-toggle .icon { width: 18px; height: 18px; }
body.xeo-theme.sidebar-collapsed .sidebar-toggle .icon { transform: rotate(180deg); }

/* Independent fixed stacks compact vertically without moving cards across columns. */
body.xeo-theme .filter-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px; align-items: start;
}
body.xeo-theme .filter-column { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
body.xeo-theme .filter-grid .filter-card { margin: 0; }
body.xeo-theme .targeting-main { container: targeting / inline-size; }
@container targeting (max-width: 820px) {
  body.xeo-theme .targeting-heading { grid-template-columns: auto minmax(0, 1fr); }
  body.xeo-theme .targeting-heading > .targeting-heading-actions { grid-column: 1 / -1; flex-wrap: wrap; }
}
@container targeting (max-width: 617px) {
  body.xeo-theme .filter-column { display: contents; }
  body.xeo-theme .geography { order: 1; }
  body.xeo-theme .company-profile { order: 2; }
  body.xeo-theme .targeted-activities { order: 3; }
  body.xeo-theme .sectors-card { order: 4; }
  body.xeo-theme .required-criteria { order: 5; }
  body.xeo-theme .keywords-card { order: 6; }
  body.xeo-theme .confidence-card { order: 7; }
  body.xeo-theme .exclusions-card { order: 8; }
  body.xeo-theme .sources-card { order: 9; }
}
body.xeo-theme .filter-card .confidence-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
body.xeo-theme .filter-card .confidence-control label { grid-column: 1 / -1; }
body.xeo-theme .filter-card .confidence-control input { width: 100%; max-width: none; }
body.xeo-theme .source-logo { display: inline-block; width: 24px; height: 24px; object-fit: contain; flex: 0 0 24px; }
body.xeo-theme .source-logo-category { color: var(--mk-ink-2); }
body.xeo-theme .source-logo-category .icon { width: 24px; height: 24px; }
body.xeo-theme .source-choices .choice { gap: 8px; }
body.xeo-theme .source-choices .choice > span:last-child { min-width: 0; }
body.xeo-theme .target-sources { display: block; }
body.xeo-theme .source-kpi-row { display: flex; align-items: center; gap: 12px; }
body.xeo-theme .source-kpi-row > strong { flex: 0 0 auto; }
body.xeo-theme .source-kpi-row .source-summary { flex: 1; min-width: 0; margin-top: 0; }
body.xeo-theme .source-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(36px, 1fr)); gap: 6px; margin-top: 14px; }
body.xeo-theme .source-summary-item { display: grid; place-items: center; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--mk-cloud); opacity: .4; filter: grayscale(1); }
body.xeo-theme .source-summary-item.is-active { opacity: 1; filter: none; background: #fff; border-color: #c3caff; }
body.xeo-theme .research-limit a { display: inline-flex; gap: 4px; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
body.xeo-theme .research-limit .icon { width: 13px; height: 13px; }
body.xeo-theme #max-prospects { scroll-margin-top: calc(var(--header-height) + 24px); }
body.xeo-theme #max-prospects:target { outline: 3px solid var(--primary); outline-offset: 3px; }

/* Explicit tracks prevent an implicit empty column at intermediate widths. */
body.xeo-theme .email-composer {
  width: 100%;
  overflow-anchor: none;
  align-items: stretch;
  grid-template-columns: var(--prospect-column, minmax(0, var(--studio-prospects-size, .95fr))) var(--editor-column, minmax(0, var(--studio-editor-size, 1.55fr))) var(--preview-column, minmax(0, var(--studio-preview-size, 1fr)));
}
body.xeo-theme .email-composer > [data-studio-panel] { display: flex; flex-direction: column; align-self: stretch; min-width: 0; }
body.xeo-theme .email-composer > [data-studio-panel] > .studio-heading { flex-shrink: 0; }
body.xeo-theme .email-composer > [data-studio-panel] > .studio-panel-content { flex: 1; min-height: 0; min-width: 0; }
body.xeo-theme .email-prospect-panel > .studio-panel-content { display: flex; flex-direction: column; }
body.xeo-theme .email-prospect-list { flex: 1 1 0; min-height: 140px; max-height: none; }
body.xeo-theme .studio-generation-choice { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; padding: 0; border: 0; }
body.xeo-theme .studio-generation-choice legend { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
body.xeo-theme .studio-generation-choice > label { display: flex; flex: 1 1 280px; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
body.xeo-theme .studio-generation-choice > label:has(input:checked) { border-color: var(--primary); background: #f1f3ff; }
body.xeo-theme .studio-generation-choice input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--primary); }
body.xeo-theme .studio-generation-choice :is(strong, small) { display: block; }
body.xeo-theme .studio-generation-choice small { color: var(--muted); font-size: 13px; }
body.xeo-theme .studio-free-settings { padding: 12px; background: var(--mk-cloud); border: 1px solid var(--line); border-radius: 12px; }
body.xeo-theme .studio-free-settings h3 { margin: 0 0 8px; font-size: 18px; }
body.xeo-theme .studio-free-settings p { font-size: 13px; }
body.xeo-theme [data-generation-mode="free"] .studio-field-row { grid-template-columns: minmax(0, 1fr); }
body.xeo-theme .email-workspace :is([data-template-fields], [data-free-fields], [data-template-only])[hidden] { display: none !important; }
body.xeo-theme .studio-preview-refresh { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; }
body.xeo-theme .email-preview-column > .studio-panel-content { display: flex; flex-direction: column; gap: 12px; }
body.xeo-theme .email-preview-column .email-preview-panel { flex: 1; }
body.xeo-theme .email-composer > [data-studio-panel] > .studio-panel-content[hidden] { display: none; }
body.xeo-theme .email-composer > [data-studio-panel].is-collapsed { min-height: var(--expanded-panel-height, 420px); }
body.xeo-theme .email-composer > [data-studio-panel].is-collapsed > .studio-panel-rail { flex: 1; min-height: calc(var(--expanded-panel-height, 420px) - 16px); flex-direction: column; justify-content: flex-start; }
body.xeo-theme .studio-launch-hint { margin: -4px 0 12px; font-size: 13px; color: var(--muted); }
body.xeo-theme .email-composer > .email-preview-column { grid-column: 3; grid-row: 1; }
body.xeo-theme .email-preview-column { grid-template-columns: minmax(0, 1fr); }
body.xeo-theme .email-composer > .studio-editor-actions { grid-column: 1 / -1; grid-row: auto; }
body.xeo-theme .studio-field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
body.xeo-theme .studio-field :is(select, input) { min-width: 0; }
body.xeo-theme .studio-heading > div { flex-basis: 120px; }
body.xeo-theme .studio-heading > .button { white-space: normal; }
body.xeo-theme .email-top-actions { justify-content: flex-end; flex-wrap: wrap; }
body.xeo-theme .email-top-actions > a { margin-right: auto; }
body.xeo-theme .research-selection-summary { margin: 12px 14px; }
body.xeo-theme .research-confirm-dialog { width: min(590px, calc(100vw - 28px)); }
body.xeo-theme .research-confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

/* Shared workflow progress and a compact, durable action summary. */
body.xeo-theme .workflow-header { display: grid; grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr); align-items: start; gap: 12px; margin-block: 0; }
body.xeo-theme .workflow-header .workflow-tabs { padding: 4px 0; min-width: 0; }
body.xeo-theme .workflow-tab .step-circle { position: relative; }
body.xeo-theme .action-progress-ring { display: block; width: 20px; height: 20px; flex-shrink: 0; color: #e13b36; }
body.xeo-theme .action-ring-track { stroke: currentColor; stroke-width: 3; opacity: .18; }
body.xeo-theme .action-ring-value { stroke: currentColor; stroke-width: 3; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; }
body.xeo-theme .action-progress-ring.is-indeterminate { animation: action-ring-spin 1s linear infinite; }
body.xeo-theme .step-circle > .action-progress-ring { position: absolute; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); pointer-events: none; }
body.xeo-theme .workflow-tab.active .action-progress-ring { color: #fff; }
body.xeo-theme .action-summary { position: relative; z-index: 25; padding: 6px 8px; background: rgb(255 255 255 / 25%); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 14px; min-width: 0; box-shadow: var(--panel-shadow); }
body.xeo-theme .action-summary-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
body.xeo-theme .action-summary-heading > strong { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--mk-coral-dark); font-size: 13px; font-weight: 750; }
body.xeo-theme .action-history-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 4px; min-width: 36px; min-height: 36px; border: 1px solid currentColor; border-radius: 10px; padding: 4px 6px; background: #fff0ec; color: var(--mk-coral-dark); font-size: 15px; font-weight: 750; }
body.xeo-theme .action-history-toggle:hover { background: #ffe4de; }
body.xeo-theme .action-history-toggle .icon { width: 18px; height: 18px; }
body.xeo-theme .action-entry { padding: 10px 0; min-width: 0; overflow-wrap: anywhere; }
body.xeo-theme .action-entry-title { display: flex; align-items: center; gap: 7px; font-size: 13px; }
body.xeo-theme .action-entry-title strong { flex: 1; }
body.xeo-theme .action-state { font-size: 13px; color: var(--muted); }
body.xeo-theme .action-entry p { margin: 5px 0 8px; font-size: 13px; color: var(--muted); }
body.xeo-theme [data-action-current] > .muted { margin: 6px 0 0; font-size: 13px; }
body.xeo-theme [data-action-current] .action-entry { padding: 3px 0 0; }
body.xeo-theme [data-action-current] .action-entry p { margin: 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
body.xeo-theme [data-action-current] .action-entry-title strong { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.xeo-theme [data-action-current] .action-completed-details { margin-top: 0; }
body.xeo-theme [data-action-current] .action-detail-message { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
body.xeo-theme .action-result-link { font-size: 13px; min-height: 28px; padding: 5px 8px; }
body.xeo-theme :is(.action-failed, .action-interrupted, .action-warning) .action-state { color: #b43d30; }
body.xeo-theme .action-drawer { position: fixed; z-index: 75; top: var(--header-height); right: 0; bottom: 0; width: 30vw; min-width: 320px; max-width: 100vw; padding: 20px; overflow-y: auto; background: var(--mk-paper); border-left: 1px solid var(--line); box-shadow: -15px 0 60px rgb(17 31 63 / 15%); }
body.xeo-theme .action-drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.xeo-theme .action-drawer-heading h2 { color: var(--mk-coral-dark); font-size: 20px; margin: 0; }
body.xeo-theme .action-drawer .action-entry { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 13px; }
body.xeo-theme .action-entry time { display: block; color: var(--muted); font-size: 13px; margin-top: 8px; }
body.xeo-theme .action-entry details { margin-top: 10px; }
body.xeo-theme .action-entry summary, body.xeo-theme .action-entry li { font-size: 13px; }
body.xeo-theme .action-completed-details > summary { display: grid; grid-template-columns: minmax(0, 1fr) 26px; align-items: center; gap: 2px 6px; margin: 0; padding: 3px 4px; border: 1px solid transparent; border-radius: 8px; list-style: none; cursor: pointer; color: var(--muted); font-weight: 400; background: rgb(255 255 255 / 20%); }
body.xeo-theme .action-completed-details > summary:hover,
body.xeo-theme .action-completed-details > summary:focus-visible { background: var(--mk-cloud); border-color: var(--line); }
body.xeo-theme .action-completed-details > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
body.xeo-theme .action-completed-details > summary::-webkit-details-marker { display: none; }
body.xeo-theme .action-completed-details > summary > .action-entry-title { grid-column: 1; min-width: 0; }
body.xeo-theme .action-detail-message { min-width: 0; }
body.xeo-theme .action-disclosure-icons { display: inline-flex; justify-content: center; align-items: center; grid-column: 2; grid-row: 1 / span 2; color: var(--mk-coral-dark); }
body.xeo-theme .action-detail-triangle { flex-shrink: 0; color: var(--mk-coral-dark); font-size: 27px; font-weight: 900; line-height: 1; }
body.xeo-theme .action-completed-details[open] > summary .action-detail-triangle { transform: rotate(180deg); }
body.xeo-theme .action-local-popup { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: min(560px, calc(100vw - 24px)); max-height: min(60vh, 560px); overflow: auto; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--mk-shadow); overflow-wrap: anywhere; }
body.xeo-theme .action-local-popup h3 { font-size: 17px; margin: 0 0 10px; }
body.xeo-theme [data-action-current] .action-local-popup p { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.6; }
body.xeo-theme .action-local-popup h4 { margin: 14px 0 8px; }
body.xeo-theme .action-drawer .action-local-popup { position: static; width: 100%; max-height: 55vh; margin-top: 10px; padding: 12px; box-shadow: none; }
body.xeo-theme .row-number-cell { text-align: center; font-variant-numeric: tabular-nums; width: 44px; }
body.xeo-theme .batch-cell { text-align: center; font-variant-numeric: tabular-nums; min-width: 48px; }
body.xeo-theme .enrich-form { margin: 5px 0 0; }
body.xeo-theme .enrich-form .text-button { display: inline-flex; align-items: center; gap: 5px; white-space: normal; text-align: left; }
body.xeo-theme .enrich-loader { display: none; }
body.xeo-theme .enrich-form.is-enriching .enrich-loader { display: inline-flex; }
body.xeo-theme .enrich-form.is-enriching button > .icon { display: none; }
body.xeo-theme .enrich-form.is-enriching button:disabled { opacity: 1; }
body.xeo-theme .enrich-loader .action-progress-ring { width: 17px; height: 17px; }
body.xeo-theme :is(.research-workspace, [data-email-studio]) > .research-batch-history {
  padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
body.xeo-theme .research-batch-history > summary { padding: 11px 0; }
body.xeo-theme .batch-company-list {
  padding: 12px; margin-bottom: 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--mk-paper); overflow-wrap: anywhere;
}
body.xeo-theme .batch-company-list > p { margin: 0 0 8px; }
body.xeo-theme .batch-company-list > ul { list-style: none; padding: 0; margin: 0 0 14px; }
body.xeo-theme .batch-company-list li { padding: 8px 0; margin: 0; border-bottom: 1px solid var(--line); }
body.xeo-theme .batch-company-list li:last-child { border-bottom: 0; }
body.xeo-theme .batch-company-list > :last-child { margin-bottom: 0; }
body.xeo-theme .research-list-separator { margin: 20px 14px; border: 0; border-top: 1px solid var(--line); }
body.xeo-theme .research-results > .research-table-wrap {
  width: calc(100% - 28px); margin: 0 14px 16px;
  border: 1px solid var(--line); border-radius: 14px;
  overflow-x: auto; scrollbar-width: auto; scrollbar-color: var(--mk-muted) var(--mk-cloud);
}
body.xeo-theme .research-table .qualification-missing-value { color: #c6283c; font-weight: 650; }
body.xeo-theme .research-table { min-width: 1280px; }
body.xeo-theme .research-table :is(.research-primary-cell, .research-preview-cell) { width: 1%; padding: 10px 12px; }
body.xeo-theme .research-table :is(.research-contact, .research-email-action) { width: auto; min-width: 0; gap: 6px; padding: 6px 8px; }
body.xeo-theme .research-preview-cell > :is(.text-button, small) { display: block; margin-top: 6px; }
body.xeo-theme .research-status-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
body.xeo-theme .research-status-cell .research-status { border: 1px solid transparent; gap: 5px; cursor: pointer; font-family: inherit; }
body.xeo-theme .research-status-cell .research-status:hover { border-color: currentColor; }
body.xeo-theme .research-status-cell .research-status > .icon { width: 17px; height: 17px; }
body.xeo-theme .research-missing-icons { display: grid; grid-template-columns: repeat(2, 28px); gap: 0 2px; }
body.xeo-theme .research-missing-action { display: flex; margin: 0; }
body.xeo-theme .status-missing-action { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 3px; border: 0; background: transparent; color: #c6283c; cursor: pointer; }
body.xeo-theme .status-missing-action:hover:not(:disabled) { color: #9f182a; }
body.xeo-theme .status-missing-action .icon { width: 21px; height: 21px; }
body.xeo-theme .research-status-cell .research-status-icon { width: 30px; min-width: 30px; height: 30px; padding: 3px; border: 0; background: transparent; color: #178348; }
body.xeo-theme .research-status-cell .research-status-icon > .icon { width: 23px; height: 23px; }
body.xeo-theme .research-missing-form { margin: 0; }
body.xeo-theme.research-page .research-command-row { background: #fff; flex-wrap: wrap; }
body.xeo-theme .batch-company-list { background: #fff; }
body.xeo-theme .research-command-actions { flex: 1 1 600px; min-width: 0; }
body.xeo-theme .research-create-missing-form { display: flex; margin: 0; flex: 0 1 auto; }
body.xeo-theme .research-create-missing-form > .button { width: 100%; }
body.xeo-theme .research-menu > summary {
  width: 38px; min-width: 38px; height: 38px; padding: 7px;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink);
}
body.xeo-theme .research-menu > summary > .icon { width: 22px; height: 22px; stroke-width: 2.7; }
body.xeo-theme .research-menu > summary:hover { background: var(--mk-cloud); border-color: var(--primary); }
body.xeo-theme .score-sort.is-current-sort { color: var(--mk-coral-dark); }
body.xeo-theme .qualification-decision-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
body.xeo-theme .qualification-decision-actions form { margin: 0; }
body.xeo-theme .qualification-decision-actions .button { width: 100%; min-height: 44px; }
body.xeo-theme .button.reject-qualification { background: #fff0f1; border-color: #edc2c7; color: #a43850; }
@media (max-width: 1000px) { body.xeo-theme .action-summary-heading > strong { font-size: 13px; } }
@media (max-width: 700px) {
  body.xeo-theme .action-summary-heading > strong { font-size: 13px; }
  body.xeo-theme .research-create-missing-form { flex: 1 1 160px; }
}
@keyframes action-ring-spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  body.xeo-theme .workflow-header { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  body.xeo-theme .action-drawer { width: min(420px, 100vw); }
}
@media (max-width: 700px) {
  body.xeo-theme .action-drawer { width: 100%; min-width: 0; bottom: 70px; }
}

@media (min-width: 701px) {
  body.xeo-theme .sidebar-first-row { display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: 4px; align-items: center; margin-bottom: 10px; }
  body.xeo-theme .sidebar-first-row > .side-link { min-width: 0; margin-bottom: 0; }
  body.xeo-theme.sidebar-expanded { --sidebar-width: 228px; }
  body.xeo-theme.sidebar-expanded .flow-sidebar { padding: 16px 10px; }
  body.xeo-theme.sidebar-expanded .side-link { justify-content: flex-start; padding: 13px 8px; }
  body.xeo-theme.sidebar-expanded .side-link > span { display: inline; }
  body.xeo-theme.sidebar-expanded .sidebar-bottom { display: block; }
  body.xeo-theme.sidebar-collapsed { --sidebar-width: 60px; }
  body.xeo-theme.sidebar-collapsed .flow-sidebar { padding: 16px 6px; }
  body.xeo-theme.sidebar-collapsed .sidebar-first-row { display: flex; flex-direction: column; gap: 6px; }
  body.xeo-theme.sidebar-collapsed .sidebar-toggle { order: -1; align-self: center; }
  body.xeo-theme.sidebar-collapsed .side-link { width: 100%; justify-content: center; padding: 14px 4px; }
  body.xeo-theme.sidebar-collapsed .side-link > span,
  body.xeo-theme.sidebar-collapsed .sidebar-bottom { display: none; }
}

@media (max-width: 1600px) {
  body.xeo-theme .choice-grid:not(.four-columns) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1280px) {
  body.xeo-theme { --sidebar-width: 198px; }
  body.xeo-theme .flow-brand { font-size: 21px; }
  body.xeo-theme .side-link { padding: 12px 10px; gap: 10px; font-size: 13px; }
  body.xeo-theme .header-account { gap: 16px; }
  body.xeo-theme :is(.research-kpi, .email-kpi, .target-kpi) { gap: 10px; padding: 13px; }
}
@media (max-width: 1000px) {
  body.xeo-theme { --sidebar-width: 84px; }
  body.xeo-theme .flow-sidebar { padding: 18px 9px; }
  body.xeo-theme .side-link { padding: 14px; justify-content: center; }
  body.xeo-theme .targeting-layout { grid-template-columns: minmax(0, 1fr); }
  body.xeo-theme .workflow-tab strong { font-size: 13px; }
  body.xeo-theme .app-header { gap: 14px; padding-inline: 18px; }
  body.xeo-theme .email-composer { grid-template-columns: var(--prospect-column, minmax(0, .85fr)) var(--editor-column, minmax(0, 1.4fr)); }
  body.xeo-theme .email-composer > .email-preview-column { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 700px) {
  body.xeo-theme { --sidebar-width: 0px; --header-height: 68px; font-size: 15px; }
  body.xeo-theme .app-header { padding: 10px 12px; gap: 10px; }
  body.xeo-theme .flow-brand { font-size: 19px; gap: 7px; }
  body.xeo-theme .flow-brand-logo { width: 32px; height: 32px; }
  body.xeo-theme .sidebar-toggle { display: none; }
  body.xeo-theme .header-account { gap: 10px; }
  body.xeo-theme .flow-sidebar { padding: 5px 8px; border-right: 0; border-top: 1px solid var(--line); background: rgb(251 252 254 / 96%); backdrop-filter: blur(18px); }
  body.xeo-theme .side-link { margin: 0; padding: 7px 4px; gap: 4px; font-size: 13px; border-radius: 11px; }
  body.xeo-theme .side-link .icon { width: 22px; height: 22px; }
  body.xeo-theme #main { --workspace-gutter: 12px; padding: 0 var(--workspace-gutter) calc(90px + env(safe-area-inset-bottom)); }
  body.xeo-theme.standalone #main { padding-bottom: 24px; }
  body.xeo-theme .workflow-tabs { padding: 16px 0 20px; }
  body.xeo-theme .workflow-tab { padding-inline: 3px; gap: 6px; }
  body.xeo-theme .workflow-tab strong { font-size: 13px; line-height: 1.4; }
  body.xeo-theme .workflow-tab .step-circle { width: 32px; height: 32px; font-size: 13px; }
  body.xeo-theme .workflow-tab::after { top: 16px; left: calc(50% + 22px); width: calc(100% - 44px); }
  body.xeo-theme :is(.targeting-heading, .filter-card, .target-actions, .target-preview, .confidence-card, .studio-panel) { padding: 14px; border-radius: 18px; }
  body.xeo-theme :is(.research-kpi, .email-kpi, .target-kpi) { border-radius: 18px; padding: 12px; gap: 9px; }
  body.xeo-theme :is(.research-kpi-label, .email-kpi-label) { font-size: 13px; }
  body.xeo-theme :is(.research-results-title h1, .targeting-heading h1) { font-size: 22px; }
  body.xeo-theme :is(.targeting-layout, .targeting-aside, .filter-grid, .filter-column) { gap: 13px; }
  body.xeo-theme .research-command-actions { flex-wrap: wrap; }
  body.xeo-theme .research-command-actions .button { font-size: 13px; }
  body.xeo-theme .studio-format-bar { flex-wrap: wrap; }
  body.xeo-theme .studio-heading > div { min-width: 150px; }
  body.xeo-theme .studio-heading > .button { order: 1; flex-basis: 100%; white-space: normal; }
  body.xeo-theme .studio-field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  body.xeo-theme .email-composer { grid-template-columns: minmax(0, 1fr); }
  body.xeo-theme .email-composer > .email-preview-column { grid-column: 1; }
  body.xeo-theme .page-footer { font-size: 13px; }
}
/* Readable supporting text across the workflow and its dialogs. */
body.xeo-theme :is(small, .small, .field, .text-button, .text-link, .notice, blockquote, .facts,
  .eyebrow, .section-number, .pill, .badge, .stat-line span, .stat-card > span,
  .sidebar-bottom, .account-dropdown label, .research-limit, .info-tooltip,
  .scoring-card > p, .weight-control > span, .weight-control output, .scoring-total,
  .confidence-control label, .profile-menu-heading, .choice, .tag-pill, .save-target-link,
  .segment-row small, .segment-feedback, .research-results-title p, .score-sort,
  .research-filter input, .research-filter select, .research-filter-drawer > summary > span,
  .research-advanced-filters > label, .research-results-footer, .research-brief,
  .research-brief > summary span, .research-usage, .research-target-facts, .research-connection-note,
  .research-company-profile, .research-menu-panel label, .research-menu-panel select, .source-more,
  .research-progress ol, .trace, [data-batch-results], [data-job-history] details,
  .studio-heading p, .email-top-actions > a, .email-selection-tools label, .email-selection-tools button,
  .studio-search input, .studio-prospect-state, .studio-list-footer, .studio-variable-chips button,
  .studio-suggestions button, .studio-format-bar > span, .studio-format-bar select, .studio-editor-footer,
  .studio-save-state, .studio-action-hint, .studio-preview-nav select, .studio-preview-version,
  .studio-preview-version select, .studio-apply-notice, .studio-check strong, .studio-check > b,
  .studio-support .field, .studio-job-history details) { font-size: 13px; line-height: 1.6; }
body.xeo-theme :is(.research-table, .research-table th, .research-profile-all .text-button,
  .research-company-profile .text-button, .research-table .research-status) { font-size: 13px; }
body.xeo-theme .action-company-results { margin: 8px 0; }
body.xeo-theme .action-company-results ul { list-style: none; padding: 0; margin: 0; }
body.xeo-theme .action-company-results li { padding: 7px 0; border-top: 1px solid var(--line); }
body.xeo-theme .action-company-results a { display: block; font-weight: 650; }
body.xeo-theme .action-company-results span { display: block; color: var(--muted); line-height: 1.6; }
body.xeo-theme .action-company-results .text-button { padding: 3px 0; }
@media (max-width: 700px) {
  body.xeo-theme .side-link { font-size: 12px; padding-inline: 1px; }
  body.xeo-theme .targeting-heading > .targeting-heading-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
  body.xeo-theme .targeting-heading-actions :is(.targeting-reset, .load-template, [data-save-segment]) { grid-column: span 2; }
  body.xeo-theme .targeting-heading-actions .button { width: 100%; }
  body.xeo-theme .flow-sidebar nav { gap: 2px; }
  body.xeo-theme .target-kpis { grid-template-columns: minmax(0, 1fr); }
  body.xeo-theme .source-kpi-row { gap: 8px; }
  body.xeo-theme .source-summary { gap: 4px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body.xeo-theme .source-summary-item { min-width: 0; }
}
@media (max-width: 360px) { body.xeo-theme .side-link { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) {
  body.xeo-theme *, body.xeo-theme *::before, body.xeo-theme *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  body.xeo-theme .button.primary:hover:not(:disabled):not([aria-disabled="true"]),
  body.xeo-theme .button.primary:active:not(:disabled) { transform: none; }
}

/* Campaign context and explicit review controls. */
body.xeo-theme .studio-support-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
body.xeo-theme .studio-support-grid #sender-form { display: grid; gap: 24px; }
body.xeo-theme .studio-support textarea { min-height: 110px; resize: vertical; }
body.xeo-theme .button.is-current, body.xeo-theme .button.is-current:hover:not(:disabled):not([aria-disabled="true"]), body.xeo-theme .button.is-current:focus-visible { background: #def3e7; color: #176441; border-color: #8cc6a5; }
body.xeo-theme .button.needs-regeneration, body.xeo-theme .button.needs-regeneration:hover:not(:disabled):not([aria-disabled="true"]), body.xeo-theme .button.needs-regeneration:focus-visible { background: #e4edff; color: #234fad; border-color: #8daee8; }
body.xeo-theme .delivery-mode-toggle { display: flex; align-items: center; gap: 8px; padding: 9px 7px; border: 1px solid; border-radius: 12px; cursor: pointer; font-size: 12px; font-weight: 700; width: 100%; }
body.xeo-theme .delivery-mode-toggle.test { color: #176441; background: #def3e7; border-color: #8cc6a5; }
body.xeo-theme .delivery-mode-toggle.production { color: #a12c35; background: #fde8e8; border-color: #e7a1a6; }
body.xeo-theme .toggle-track { width: 30px; height: 18px; border-radius: 12px; background: currentColor; position: relative; flex: none; }
body.xeo-theme .toggle-track::after { content: ''; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: white; left: 3px; top: 3px; }
body.xeo-theme .production .toggle-track::after { left: 15px; }
body.xeo-theme .studio-preview-actions { flex-wrap: wrap; }
body.xeo-theme .studio-preview-actions .check { flex-basis: 100%; }
body.xeo-theme .studio-generation-choice > label { flex-basis: 150px; padding: 9px; }
@media (min-width: 701px) {
  body.xeo-theme.sidebar-collapsed .sidebar-bottom { display: block; font-size: 0; }
  body.xeo-theme.sidebar-collapsed .sidebar-bottom > :not(.sidebar-mode-form) { display: none; }
  body.xeo-theme.sidebar-collapsed .delivery-mode-toggle { justify-content: center; padding: 8px 0; }
  body.xeo-theme.sidebar-collapsed .delivery-mode-toggle > span:last-child { display: none; }
}
@media (max-width: 700px) {
  body.xeo-theme .sidebar-bottom { display: block; font-size: 0; }
  body.xeo-theme .sidebar-bottom > :not(.sidebar-mode-form) { display: none; }
  body.xeo-theme .flow-sidebar { padding-bottom: 6px; }
  body.xeo-theme .delivery-mode-toggle { justify-content: center; padding: 4px; }
  body.xeo-theme #main { padding-bottom: 150px; }
}

body.xeo-theme .studio-prospect { grid-template-columns: minmax(24px, auto) 32px minmax(0, 1fr) 28px 36px; }
body.xeo-theme .studio-prospect-number { grid-column: 1; grid-row: 1; text-align: center; color: var(--muted); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
body.xeo-theme .email-selection-tools { flex-wrap: wrap; }
body.xeo-theme .email-selection-tools button { white-space: normal; text-align: left; }

/* Saved message preparation is independent of approval and company qualification. */
body.xeo-theme .studio-prospect-state { grid-column: 4; grid-row: 1; justify-self: stretch; min-height: 28px; padding: 0; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: normal; }
body.xeo-theme .studio-prospect-state .icon { width: 17px; height: 17px; flex: 0 0 17px; }
body.xeo-theme .studio-prospect-state.ready { color: #176441; background: #def3e7; }
body.xeo-theme .studio-prospect-state.missing { color: #234fad; background: #e4edff; }
body.xeo-theme .studio-prospect-state.stale { color: #234fad; background: #e4edff; }
body.xeo-theme .studio-preview-counts { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 6px; font-size: 13px; font-weight: 600; }
body.xeo-theme .email-count-ready { color: #176441; }
body.xeo-theme .email-count-pending { color: #234fad; }

body.xeo-theme .studio-prospect { cursor: pointer; align-items: center; }
body.xeo-theme .studio-prospect:focus-visible { outline: 2px solid #234fad; outline-offset: 2px; }
body.xeo-theme .studio-prospect .studio-avatar { grid-row: 1; }
body.xeo-theme .studio-prospect .studio-score { grid-column: 5; grid-row: 1; }
body.xeo-theme .studio-email-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
body.xeo-theme .studio-email-filter { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; font-size: 13px; cursor: pointer; }
body.xeo-theme .studio-email-filter .icon { width: 17px; height: 17px; }
body.xeo-theme .studio-email-filter.filter-ready { color: #176441; background: #def3e7; border-color: #8cc6a5; }
body.xeo-theme .studio-email-filter.filter-missing { color: #234fad; background: #e4edff; border-color: #8daee8; }
body.xeo-theme .studio-email-filter.filter-all { color: var(--ink); background: #fff; }
body.xeo-theme .studio-email-filter[aria-pressed="true"] { outline: 2px solid currentColor; outline-offset: 1px; }

/* Qualification keeps its actions with the results heading. */
body.xeo-theme .research-results-heading { display: grid; grid-template-columns: auto minmax(140px, 190px) minmax(0, 1fr); align-items: center; }
body.xeo-theme .research-results-heading .research-command-row { min-width: 0; margin-left: auto; padding: 0; border: 0; width: 100%; }
body.xeo-theme .research-results-heading .research-command-actions { flex: 1; display: flex; flex-wrap: nowrap; justify-content: flex-end; align-items: stretch; width: 100%; gap: 6px; }
body.xeo-theme .research-results-heading .research-command-actions form { display: flex; min-width: 0; flex: 1 1 auto; }
body.xeo-theme .research-results-heading .research-command-actions .button { min-width: 0; padding: 8px; white-space: normal; text-align: center; }
body.xeo-theme .research-results-heading .research-command-actions form .button { width: 100%; }
body.xeo-theme .research-advanced-filters > .research-sort-filter, body.xeo-theme .research-sort-filter select, body.xeo-theme .research-sort-filter option { color: #7250a5; }
body.xeo-theme .research-batch-filter { display: grid; gap: 5px; color: var(--muted); font-size: 13px; }
body.xeo-theme .research-batch-picker { position: relative; min-width: 150px; }
body.xeo-theme .research-batch-picker > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); }
body.xeo-theme .research-batch-options { position: absolute; top: calc(100% + 5px); left: 0; z-index: 40; min-width: 190px; max-height: 260px; overflow-y: auto; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 20px #1720551f; }
body.xeo-theme .research-batch-options label { display: flex; align-items: center; gap: 8px; padding: 6px; color: var(--ink); cursor: pointer; }
body.xeo-theme .research-batch-options input { width: 17px; height: 17px; margin: 0; }
@media (max-width: 900px) {
  body.xeo-theme .research-results-heading { grid-template-columns: auto minmax(0, 1fr); }
  body.xeo-theme .research-results-heading .research-command-row { grid-column: 1 / -1; }
  body.xeo-theme .research-results-heading .research-command-actions { flex-wrap: wrap; }
}

body.xeo-theme .studio-html-mode { display: flex; gap: 6px; padding: 8px 10px; }
body.xeo-theme .studio-html-mode button { background: #fff; color: #234fad; border: 1px solid #8daee8; border-radius: 6px; padding: 4px 10px; }
body.xeo-theme .studio-html-mode button[aria-pressed="true"] { background: #e4edff; }
body.xeo-theme .studio-html-editor { min-height: 280px; padding: 14px; line-height: 1.65; overflow-wrap: anywhere; white-space: normal; }
body.xeo-theme .studio-html-editor[hidden], body.xeo-theme .studio-message-box textarea[hidden] { display: none; }
body.xeo-theme .studio-html-preview { white-space: normal; line-height: 1.65; overflow-wrap: anywhere; }
body.xeo-theme .email-utm-pill { display: inline-block; background: #e4edff; color: #234fad; border: 1px solid #8daee8; border-radius: 999px; padding: 1px 7px; margin: 2px 3px; font-size: 12px; user-select: none; vertical-align: baseline; }
body.xeo-theme .email-open-pill { display: table; margin-top: 12px; }

body.xeo-theme .studio-free-settings textarea[hidden] { display: none; }

body.xeo-theme .studio-email-updated { margin: 12px 0 0; font-size: 13px; }
body.xeo-theme .studio-email-updated.up-to-date { color: #176441; }
body.xeo-theme .studio-email-updated.needs-update { color: #234fad; }

/* Campaign split view: handles live in the gaps without changing the grid tracks. */
body.xeo-theme .email-composer { position: relative; }
body.xeo-theme .studio-column-resizer { position: absolute; z-index: 3; width: 16px; transform: translateX(-50%); cursor: col-resize; touch-action: none; border-radius: 8px; }
body.xeo-theme .studio-column-resizer[hidden] { display: none; }
body.xeo-theme .studio-column-resizer::before { content: ""; position: absolute; inset: 0 6px; border-radius: 4px; background: var(--line); transition: background .15s; }
body.xeo-theme .studio-column-resizer::after { content: ""; position: sticky; display: block; top: 45vh; margin: 32px auto; width: 4px; height: 36px; border-radius: 4px; background: #9baac1; }
body.xeo-theme .studio-column-resizer:is(:hover, :focus-visible, .is-dragging)::before { background: var(--primary); }
body.xeo-theme .studio-column-resizer:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
body.xeo-theme.studio-resizing, body.xeo-theme.studio-resizing * { cursor: col-resize !important; user-select: none !important; }

/* Clearly framed context sections with one shared field alignment. */
body.xeo-theme .studio-support > summary { font-size: 17px; line-height: 1.5; }
body.xeo-theme .studio-support-card { min-width: 0; padding: 24px; border: 1px solid #cfd9e7; border-radius: 16px; background: #fff; }
body.xeo-theme .studio-support-card h2 { margin: 0 0 20px; font-size: 21px; line-height: 1.4; }
body.xeo-theme .studio-support-card .section-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }
body.xeo-theme .studio-support-card .section-heading h2 { flex: 1; margin: 0; }
body.xeo-theme .studio-settings-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px 24px; }
body.xeo-theme .studio-settings-wide { grid-column: 1 / -1; min-width: 0; }
body.xeo-theme .studio-support .field { display: grid; grid-template-rows: minmax(48px, auto) auto; gap: 8px; margin: 0; min-width: 0; font-size: 16px; line-height: 1.5; font-weight: 600; }
body.xeo-theme .studio-support .field :is(input, textarea, select) { width: 100%; min-width: 0; margin: 0; padding: 12px 14px; font-size: 16px; line-height: 1.5; font-weight: 400; }
body.xeo-theme .studio-support .field :is(input, select) { min-height: 48px; }
body.xeo-theme .studio-support-card :is(p, .button) { font-size: 16px; line-height: 1.5; }
body.xeo-theme .studio-tracking-options { display: grid; gap: 12px; }
body.xeo-theme .studio-settings-check { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; line-height: 1.5; cursor: pointer; }
body.xeo-theme .studio-settings-check input[type="checkbox"] { appearance: auto; flex: 0 0 22px; width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--primary); cursor: pointer; }
body.xeo-theme .studio-settings-check:has(input:checked) { border-color: #a8bae8; background: #f4f7ff; }
@media (max-width: 900px) {
  body.xeo-theme .studio-settings-fields { grid-template-columns: minmax(0, 1fr); }
  body.xeo-theme .studio-support .field { grid-template-rows: auto auto; }
}
@media (max-width: 700px) {
  body.xeo-theme .studio-support-card { padding: 18px; }
  body.xeo-theme .studio-settings-fields { grid-template-columns: minmax(0, 1fr); }
  body.xeo-theme .studio-support-card .section-heading .button { width: 100%; }
}

body.xeo-theme :is(.studio-preview-sender, .studio-preview-recipient) { color: #176441; overflow-wrap: anywhere; }

/* Email campaign notifications: recorded event times, never the refresh time. */
body.xeo-theme .action-entry-title.has-timestamp { flex-wrap: wrap; gap: 3px 7px; }
body.xeo-theme .action-entry-first-line { display: flex; align-items: baseline; gap: 8px; flex: 0 0 100%; min-width: 0; }
body.xeo-theme .action-entry-first-line > strong { min-width: 0; }
body.xeo-theme .action-entry-first-line > .action-entry-timestamp { display: inline; flex: none; margin: 0 0 0 auto; font-size: 12px; line-height: 1.4; white-space: nowrap; font-weight: 400; font-variant-numeric: tabular-nums; }
body.xeo-theme .action-entry > .action-history-timestamp { margin: 0 0 8px; font-weight: 600; font-variant-numeric: tabular-nums; }

body.xeo-theme .research-batch-picker > summary::-webkit-details-marker { display: none; }
body.xeo-theme .research-batch-picker > summary::marker { content: ''; }
body.xeo-theme .research-batch-picker > summary > .icon { flex: none; width: 16px; height: 16px; }
body.xeo-theme .research-batch-history .batch-company-list { max-height: 300px; overflow: auto; font-size: 13px; line-height: 1.6; }
body.xeo-theme .batch-company-list time { font-variant-numeric: tabular-nums; }

body.xeo-theme .studio-regeneration-notice { display: flex; align-items: center; gap: 7px; color: #234fad; font-size: 13px; }
body.xeo-theme .studio-regeneration-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; padding: 5px; border-radius: 6px; background: #e4edff; }
body.xeo-theme .studio-regeneration-icon .icon { width: 17px; height: 17px; }
body.xeo-theme .studio-prospect-state.blocked { color: #876321; background: #fff6df; }

body.xeo-theme .studio-prospect-state.validated,
body.xeo-theme .studio-preview-status.validated,
body.xeo-theme .studio-email-filter.filter-validated { color: #176441; background: #def3e7; border-color: #8cc6a5; }
body.xeo-theme .studio-prospect-state.sent,
body.xeo-theme .studio-preview-status.sent,
body.xeo-theme .studio-email-filter.filter-sent { color: #7250a5; background: #f2edff; border-color: #baa5df; }
body.xeo-theme .studio-preview-message { position: relative; padding-right: 52px; }
body.xeo-theme .studio-preview-status { position: absolute; top: 11px; right: 12px; display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; border-radius: 6px; }
body.xeo-theme .studio-preview-status .icon { width: 17px; height: 17px; }
body.xeo-theme .studio-preview-status.ready { color: #176441; background: #def3e7; }
body.xeo-theme .studio-preview-status:is(.missing,.stale) { color: #234fad; background: #e4edff; }
body.xeo-theme .studio-preview-status.blocked { color: #876321; background: #fff6df; }
