/* grepped.ai/console: the buyer console. Loads after marketplace.css, start.css (dark palette) and agents.css. */
.cx-body { min-height: 100vh; }
.cx { display: flex; min-height: 100vh; }
.cx-side { position: sticky; top: 0; flex: none; width: 248px; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 22px 16px 18px;
  border-right: 1px solid var(--line); background: #fafafa; overflow: auto; }
.cx-side .logo { display: block; padding: 0 8px; color: var(--ink); }
.cx-side .logo-mark, .cx-top .logo-mark { height: 17px; width: auto; }
.cx-team { margin: 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.cx-team small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cx-team b { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-nav { display: grid; gap: 2px; }
.cx-nav h6 { margin: 14px 10px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cx-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.cx-nav a:hover { color: var(--ink); background: var(--chip); }
.cx-nav a.is-on { color: var(--ink); background: var(--chip); font-weight: 600; }
.cx-nav a svg { flex: none; width: 16px; height: 16px; opacity: .8; }
.cx-nav a .cx-lock { margin-left: auto; font-size: 11px; color: var(--muted); }
.cx-nav a .cx-n { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 99px; font-size: 11px; font-weight: 700; text-align: center; color: #dbeafe; background: rgba(59, 130, 246, .3); }
.cx-foot { margin-top: auto; display: grid; gap: 6px; padding: 12px 10px 0; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.cx-foot a { color: var(--ink-2); }
.cx-foot b { color: var(--ink-2); font-weight: 500; overflow-wrap: anywhere; }
.cx-main { flex: 1; min-width: 0; }
.cx-top { display: none; }
.cx-page { max-width: 1040px; margin: 0 auto; padding: 34px 40px 80px; }
.cx-page.is-narrow { max-width: 760px; }

.cx-h { margin: 0 0 6px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.cx-sub { margin: 0 0 24px; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 680px; }
.cx-kick { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rose); }
.cx-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cx-grid > .ac-sec, .cx-col > .ac-sec { margin: 0; }
.cx-col { display: grid; gap: 18px; }
.cx-card { padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--paper); }
.cx-card h2 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.cx-card > p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* Setup checklist: "Unlock the marketplace" */
.cx-steps { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: s; }
.cx-steps li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.cx-steps li:first-child { border-top: 0; }
.cx-steps .ag-dot { margin-top: 1px; }
.cx-steps li > div { flex: 1; min-width: 0; }
.cx-steps b { display: block; font-size: 14px; font-weight: 600; }
.cx-steps small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.cx-steps .cx-who { margin-left: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cx-steps li.is-next b { color: var(--ink); }
.cx-steps li.is-next .ag-dot { border-color: var(--rose); }
.cx-steps li.is-wait .ag-dot { border-style: dashed; }
.cx-steps .btn { flex: none; align-self: center; padding: 7px 14px; font-size: 13px; }
.cx-bar { height: 6px; margin-top: 12px; border-radius: 99px; background: var(--chip); overflow: hidden; }
.cx-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3b82f6, #60a5fa); }

/* The locked marketplace */
.cx-locked { position: relative; margin-top: 18px; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; background: var(--paper); }
.cx-locked-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px; filter: blur(5px); opacity: .55; pointer-events: none; user-select: none; }
.cx-ghost { height: 120px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(160deg, #15151a, #0f0f13); }
.cx-ghost i { display: block; height: 10px; margin: 14px 14px 0; border-radius: 6px; background: #22222a; }
.cx-ghost i + i { width: 60%; }
.cx-locked-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; background: radial-gradient(ellipse at center, rgba(8, 8, 10, .75), rgba(8, 8, 10, .35)); }
.cx-locked-msg h3 { margin: 0 0 6px; font-size: 18px; }
.cx-locked-msg p { margin: 0 auto; max-width: 440px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* Stats */
.cx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); }
.cx-stats > div { padding: 14px 16px; background: var(--paper); }
.cx-stats b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.cx-stats span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.cx-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cx-cats span { padding: 4px 10px; border-radius: 99px; font-size: 12.5px; color: var(--ink-2); background: var(--chip); }
.cx-cats span b { color: var(--ink); font-weight: 600; margin-left: 4px; }

/* Feed rows */
.cx-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.cx-item:first-of-type { border-top: 0; }
.cx-item:hover b { text-decoration: underline; }
.cx-item > div { flex: 1; min-width: 0; }
.cx-item b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.cx-item small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.cx-ref { flex: none; padding: 2px 7px; border-radius: 7px; font: 11.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: #93c5fd; background: rgba(59, 130, 246, .12); }
.cx-new { flex: none; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; color: var(--ok); background: rgba(52, 211, 153, .1); }

/* Forms */
.cx-form { display: grid; gap: 16px; }
.cx-form .rq-f { margin: 0; }
.cx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cx-form textarea { min-height: 92px; resize: vertical; }
.cx-form .rq-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.cx-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cx-acts .btn { padding: 10px 18px; }
.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-chips label { position: relative; }
.cx-chips input { position: absolute; opacity: 0; pointer-events: none; }
.cx-chips span { display: inline-block; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.cx-chips input:checked + span { color: var(--ink); border-color: var(--rose); background: rgba(59, 130, 246, .12); }
.cx-chips input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }

/* NDA */
.cx-nda { max-height: 420px; overflow: auto; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.cx-nda h3 { margin: 0 0 10px; font-size: 15px; color: var(--ink); }
.cx-nda p { margin: 0 0 10px; }
.cx-nda b { color: var(--ink); }
.cx-signed { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .07); font-size: 14px; color: var(--ink-2); }

/* Sign-in: the marketplace's own look (white, DM Sans, rounded, black buttons), very little copy. */
.cx-auth { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.cx-auth-top { padding: 24px 32px; }
.cx-auth-top .logo { color: #222; }
.cx-auth-top .logo-mark { height: 17px; width: auto; }
.cx-auth-box { flex: 1; width: 100%; max-width: 400px; margin: 0 auto; padding: 8vh 24px 40px; }
.cx-auth-box h1 { margin: 0 0 24px; font-size: 26px; font-weight: 600; letter-spacing: -.01em; color: #222; }
.cx-auth-box > p { margin: -16px 0 24px; font-size: 15px; color: #6a6a6a; }
.cx-auth-box > p b { color: #222; font-weight: 600; }
.cx-lf { display: grid; gap: 16px; }
.cx-lf .rq-f { margin: 0; }
.cx-lf .rq-l { margin: 0 0 6px; font-size: 14px; font-weight: 500; color: #222; }
.cx-lf .rq-hint { margin: 6px 0 0; font-size: 13px; color: #6a6a6a; }
.cx-lf .btn-block { margin-top: 4px; }
.cx-lf .btn-line { margin-top: -6px; border-color: #dddddd; }
.cx-fine { margin: 4px 0 0; font-size: 14px; color: #6a6a6a; text-align: center; }
.cx-body .cx-fine a, .cx-auth-foot a { color: #222; font-weight: 500; }
.cx-otp { letter-spacing: .5em; font-size: 22px !important; text-align: center; }
.cx-auth-foot { padding: 20px 32px 28px; font-size: 13px; color: #8a8a8a; text-align: center; }
.cx-auth-foot a { font-weight: 400; color: #6a6a6a; text-decoration: none; }

/* Agent page bits reused from agents.css live there; tweaks for the console */
.cx-page .ag-prompt { margin-bottom: 18px; }
.cx-plan { padding: 16px 0; border-top: 1px solid var(--line); }
.cx-plan:first-of-type { border-top: 0; }
.cx-plan-h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.cx-plan-h b { font-size: 15px; }
.cx-plan p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); white-space: pre-wrap; }
.cx-plan .cx-matches { margin-top: 10px; display: grid; gap: 4px; }
.cx-plan .cx-matches a { font-size: 13.5px; color: var(--ink); }
.cx-dl { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 14px; }
.cx-dl dt { color: var(--muted); }
.cx-dl dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; }

/* Team card in the sidebar */
.cx-team-n { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }

/* Verified buyer */
.cx-verified { border-color: rgba(52, 211, 153, .3); background: linear-gradient(180deg, rgba(52, 211, 153, .06), transparent 60%), var(--paper); }
.cx-vhead { display: flex; gap: 12px; align-items: center; }
.cx-vbadge { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--ok); background: rgba(52, 211, 153, .14); }
.cx-vbadge svg { width: 18px; height: 18px; }
.cx-vlist { display: grid; gap: 0; margin: 14px 0 0; font-size: 13.5px; }
.cx-vlist > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.cx-vlist dt { color: var(--muted); }
.cx-vlist dd { margin: 0; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.cx-vlist a { color: var(--ink); }

/* Shortcuts */
.cx-shorts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.cx-short { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; }
.cx-short:hover { border-color: var(--line-2); background: var(--chip); }
.cx-short svg { flex: none; width: 17px; height: 17px; margin-top: 1px; color: #93c5fd; }
.cx-short b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cx-short small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }

/* Browse */
.cx-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--field); }
.cx-search svg { flex: none; width: 17px; height: 17px; color: var(--muted); }
.cx-search input { flex: 1; min-width: 0; padding: 12px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; }
.cx-fchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; }
.cx-fchips button { padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 99px; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; }
.cx-fchips button b { margin-left: 4px; font-weight: 600; color: var(--muted); }
.cx-fchips button:hover { color: var(--ink); }
.cx-fchips button.is-on { color: var(--ink); border-color: var(--rose); background: rgba(59, 130, 246, .12); }
.cx-fchips button.is-on b { color: var(--ink); }
.cx-dsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.cx-ds { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--paper); text-decoration: none; color: inherit; }
.cx-ds:hover { border-color: rgba(59, 130, 246, .5); }
.cx-ds-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cx-ds b { font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.cx-ds p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cx-ds small { margin-top: auto; padding-top: 4px; font-size: 12px; color: var(--muted); }
.cx-tag { padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; color: var(--ink-2); background: var(--chip); }
.cx-tag.is-ok { color: var(--ok); background: rgba(52, 211, 153, .1); }
.cx-tag.is-new { color: #93c5fd; background: rgba(59, 130, 246, .14); }

/* Help */
.cx-faq details { padding: 12px 0; border-top: 1px solid var(--line); }
.cx-faq details:first-child { border-top: 0; }
.cx-faq summary { cursor: pointer; font-size: 14.5px; font-weight: 600; }
.cx-faq p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 820px) { .cx-shorts { grid-template-columns: 1fr; } }

@media (max-width: 1000px) {
  .cx-grid { grid-template-columns: 1fr; }
  .cx-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .cx-side { position: fixed; z-index: 40; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .6); }
  .cx-side.is-open { transform: none; }
  .cx-top { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .cx-top .logo { color: var(--ink); }
  .cx-menu { padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; color: var(--ink); font-size: 16px; cursor: pointer; }
  .cx-page { padding: 24px 18px 64px; }
  .cx-two { grid-template-columns: 1fr; }
  .cx-locked-grid { grid-template-columns: 1fr 1fr; }
  .cx-auth-top { padding: 18px 20px; }
  .cx-auth-box { padding-top: 24px; }
  .cx-dl { grid-template-columns: 1fr; gap: 2px 0; }
  .cx-dl dd { margin-bottom: 8px; }
}

/* The marketplace's palette (Erik, 6 Nov): overrides the dark one start.css and agents.css set. */
.st-body.cx-body {
  --bg: #ffffff; --paper: #ffffff; --ink: #222222; --ink-2: #6a6a6a; --muted: #8a8a8a;
  --line: #ebebeb; --line-2: #dddddd; --field: #ffffff; --chip: #f7f7f7;
  --rose: #2563eb; --rose-grad: #2563eb; --req: #c13515; --ok: #008a05;
  --shadow: 0 6px 16px rgba(0, 0, 0, .12);
  background: #fff; color: #222;
}
.st-body.cx-body .btn-rose, .st-body.cx-body .btn-dark { background: #222; color: #fff; border-color: #222; border-radius: 10px; }
.st-body.cx-body .btn-rose:hover, .st-body.cx-body .btn-dark:hover { background: #000; }
.st-body.cx-body .btn-line { background: #fff; color: #222; border-color: #222; border-radius: 10px; }
.st-body.cx-body .btn-line:hover { background: #f7f7f7; }
.st-body.cx-body input[type=text], .st-body.cx-body input[type=email], .st-body.cx-body select, .st-body.cx-body textarea { border: 1px solid #b0b0b0; border-radius: 12px; background: #fff; color: #222; }
.st-body.cx-body input:focus, .st-body.cx-body select:focus, .st-body.cx-body textarea:focus { border-color: #222; box-shadow: 0 0 0 1px #222; }
.st-body.cx-body .rq-l { color: #222; }
.cx-body .cx-side { background: #fff; }
.cx-body .cx-card, .cx-body .ac-sec { border-color: #ebebeb; border-radius: 16px; }
.cx-body .cx-kick { color: #6a6a6a; }
.cx-body .cx-nav a .cx-n { color: #fff; background: #222; }
.cx-body .cx-ref { color: #222; background: #f2f2f2; }
.cx-body .cx-new, .cx-body .cx-tag.is-ok { color: #008a05; background: #eef8ee; }
.cx-body .cx-tag.is-new { color: #2563eb; background: #eef3fe; }
.cx-body .ac-pill.ac-ok { color: #008a05; background: #eef8ee; }
.cx-body .ac-pill.ac-warn { color: #92400e; background: #fef3c7; }
.cx-body .ac-pill.ac-wait { color: #222; background: #f2f2f2; }
.cx-body .ac-err { color: #c13515; background: #fdf0ed; }
.cx-body .ac-note { color: #008a05; background: #eef8ee; }
.cx-body .cx-bar i { background: #222; }
.cx-body .cx-chips input:checked + span, .cx-body .cx-fchips button.is-on { border-color: #222; background: #222; color: #fff; }
.cx-body .cx-fchips button.is-on b { color: #fff; }
.cx-body .cx-ghost { background: #f4f4f4; border-color: #ebebeb; }
.cx-body .cx-ghost i { background: #e2e2e2; }
.cx-body .cx-locked-msg { background: radial-gradient(ellipse at center, rgba(255, 255, 255, .92), rgba(255, 255, 255, .6)); }
.cx-body .cx-verified { border-color: #ebebeb; background: #fff; }
.cx-body .cx-vbadge { color: #008a05; background: #eef8ee; }
.cx-body .cx-short svg { color: #222; }
.cx-body .cx-ds:hover { border-color: #dddddd; box-shadow: var(--shadow); }
.cx-body .cx-nda { background: #fafafa; }
.cx-body .cx-signed { border-color: #ebebeb; background: #fafafa; }
.cx-body .ag-prompt { border-color: #ebebeb; background: #fafafa; }
.cx-body .ag-prompt-t, .cx-body .ag-keyline code { background: #fff; border: 1px solid #ebebeb; color: #222; }
.cx-body .ag-fresh { border-color: #ebebeb; background: #fafafa; }
.cx-body .mk-code { background: #f7f7f7; color: #222; border: 1px solid #ebebeb; }
.cx-body .cx-steps li.is-next .ag-dot { border-color: #222; }
.cx-body .cx-steps li.is-ok .ag-dot { background: #008a05; border-color: #008a05; color: #fff; }
.cx-side[hidden], .cx-top[hidden], .cx.is-out .cx-side { display: none !important; }

/* Colour, where it carries meaning (Erik, 6 Nov: "really bland ... add color where it's necessary,
   icons slightly thicker ... more polished, more friendly, more fun", still minimal). The colours are
   the marketplace's own (marketplace.js MIX_COL). */
.cx-body { --c-blue: #3a63c8; --c-green: #2e9a62; --c-amber: #d9a514; --c-coral: #e07a5f; --c-violet: #7b61c9; --c-teal: #4fa3a9; --c-red: #c13515; }
.cx-body .cx-nav a svg { width: 17px; height: 17px; opacity: 1; color: #6a6a6a; }
.cx-body .cx-nav a.is-on { background: #eef2fc; color: #1f3f99; }
.cx-body .cx-nav a.is-on svg { color: var(--c-blue); }
.cx-body .cx-nav a .cx-n { color: #fff; background: var(--c-blue); }
.cx-body .cx-team { background: linear-gradient(135deg, #f5f8ff, #fff 70%); border-color: #e3e9f7; }
.cx-body .cx-h { font-size: 30px; }
.cx-body .cx-bar { background: #eef0f4; }
.cx-body .cx-bar i { background: linear-gradient(90deg, var(--c-blue), var(--c-teal)); }

/* The four qualifying stages */
.cx-stepper { list-style: none; display: flex; gap: 0; margin: 0 0 22px; padding: 0; }
.cx-stepper li { flex: 1; position: relative; }
.cx-stepper li + li::before { content: ""; position: absolute; top: 15px; right: calc(50% + 20px); left: calc(-50% + 20px); height: 2px; border-radius: 2px; background: #e6e8ee; }
.cx-stepper li.is-done + li::before { background: var(--c-green); }
.cx-stp { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: #8a8a8a; }
.cx-stp i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-style: normal; font-size: 13px; font-weight: 700; background: #f1f2f5; color: #8a8a8a; transition: transform .15s; }
.cx-stp i svg { width: 16px; height: 16px; stroke-width: 2.6; }
.cx-stp b { font-size: 13px; font-weight: 600; }
a.cx-stp:hover i { transform: scale(1.06); }
.cx-stepper li.is-done .cx-stp i { background: var(--c-green); color: #fff; }
.cx-stepper li.is-done .cx-stp b { color: #222; }
.cx-stepper li.is-on .cx-stp i { background: var(--c-blue); color: #fff; box-shadow: 0 0 0 5px #e4ebfb; }
.cx-stepper li.is-on .cx-stp b { color: #222; }
.cx-stepper li.is-wait .cx-stp i { background: #fff7e0; color: #a67c00; }

/* The one next step */
.cx-next { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 18px; border: 1px solid; }
.cx-next h2 { margin: 0 0 3px; font-size: 18px; font-weight: 700; color: #222; }
.cx-next p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #555; }
.cx-next > div { flex: 1; min-width: 0; }
.cx-next .btn { flex: none; padding: 11px 20px; }
.cx-next-ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; }
.cx-next-ic svg { width: 24px; height: 24px; }
.cx-next.is-blue { background: linear-gradient(120deg, #f2f6ff, #fff 75%); border-color: #dbe4fa; }
.cx-next.is-blue .cx-next-ic { background: var(--c-blue); }
.cx-next.is-violet { background: linear-gradient(120deg, #f5f2ff, #fff 75%); border-color: #e3dcf8; }
.cx-next.is-violet .cx-next-ic { background: var(--c-violet); }
.cx-next.is-green { background: linear-gradient(120deg, #eff9f3, #fff 75%); border-color: #d3eedd; }
.cx-next.is-green .cx-next-ic { background: var(--c-green); }
.cx-next.is-amber { background: linear-gradient(120deg, #fff8e6, #fff 75%); border-color: #f5e6b8; }
.cx-next.is-amber .cx-next-ic { background: var(--c-amber); }
.cx-next.is-red { background: linear-gradient(120deg, #fdf0ed, #fff 75%); border-color: #f5d5cd; }
.cx-next.is-red .cx-next-ic { background: var(--c-red); }

/* Stats and the category mix, the marketplace's market-map colours */
.cx-body .cx-stats { grid-template-columns: repeat(3, 1fr); }
.cx-body .cx-stats b { font-size: 26px; }
.cx-mix { display: flex; gap: 3px; height: 12px; margin-top: 16px; }
.cx-mix i { display: block; min-width: 4px; border-radius: 4px; }
.cx-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: #6a6a6a; }
.cx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cx-legend i { width: 9px; height: 9px; border-radius: 3px; }
.cx-legend b { color: #222; font-weight: 600; }

/* Shortcut tiles: one colour each */
.cx-body .cx-short svg { width: 30px; height: 30px; padding: 7px; border-radius: 9px; box-sizing: border-box; color: #fff; }
.cx-body .cx-short:nth-child(6n+1) svg { background: var(--c-blue); }
.cx-body .cx-short:nth-child(6n+2) svg { background: var(--c-green); }
.cx-body .cx-short:nth-child(6n+3) svg { background: var(--c-amber); }
.cx-body .cx-short:nth-child(6n+4) svg { background: var(--c-violet); }
.cx-body .cx-short:nth-child(6n+5) svg { background: var(--c-coral); }
.cx-body .cx-short:nth-child(6n+6) svg { background: var(--c-teal); }
.cx-body .cx-short { transition: border-color .15s, box-shadow .15s, transform .15s; }
.cx-body .cx-short:hover { border-color: #dddddd; box-shadow: 0 4px 14px rgba(0, 0, 0, .06); transform: translateY(-1px); }
.cx-body .cx-steps li.is-ok .ag-dot { background: var(--c-green); border-color: var(--c-green); }
.cx-body .cx-vbadge { color: #fff; background: var(--c-green); }
.cx-body .cx-ref { color: #1f3f99; background: #eef2fc; }
.cx-body .cx-card { transition: box-shadow .2s; }
@media (max-width: 760px) {
  .cx-next { flex-wrap: wrap; }
  .cx-next .btn { width: 100%; text-align: center; }
  .cx-stp b { font-size: 11.5px; }
}
.cx-body a.cx-stp, .cx-body a.cx-stp:visited { color: #8a8a8a; text-decoration: none; }
.cx-body a.cx-stp:hover b { color: #222; }

/* Team workspace (console.js wsView): a lab's channels and the corpora shared in them. */
.cx-page.is-ws { max-width: none; padding: 0; }
.ws { display: grid; grid-template-columns: 250px minmax(0, 1fr); height: 100vh; }
.ws-side { display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; border-right: 1px solid #ebebeb; background: #fbfbfc; overflow: auto; }
.ws-side h6 { margin: 18px 8px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a8a8a; }
.ws-org { display: flex; gap: 10px; align-items: center; padding: 4px 6px 8px; }
.ws-org b { display: block; font-size: 15px; }
.ws-org small { display: block; font-size: 12px; color: #8a8a8a; }
.ws-org-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff; font-weight: 700; font-size: 16px; }
.ws-ch { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; font-size: 14px; color: #555; text-decoration: none; }
.cx-body .ws-ch, .cx-body .ws-ch:visited { color: #555; text-decoration: none; }
.ws-ch i { font-style: normal; color: #9a9a9a; font-weight: 600; width: 12px; }
.ws-ch:hover { background: #f1f2f5; }
.cx-body .ws-ch.is-on { background: #eef2fc; color: #1f3f99; font-weight: 600; }
.ws-ch.is-on i { color: var(--c-blue); }
.cx-body .ws-ch.is-unread { color: #222; font-weight: 700; }
.ws-ch em { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 99px; font: 700 11px/1.5 inherit; font-style: normal; text-align: center; color: #fff; background: var(--c-blue); }
.ws-add { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 14px; color: #8a8a8a; cursor: pointer; text-align: left; }
.ws-add:hover { background: #f1f2f5; color: #222; }
.ws-add svg { width: 14px; height: 14px; }
.ws-newch { display: flex; gap: 6px; padding: 4px 2px; }
.ws-newch input { flex: 1; min-width: 0; padding: 7px 10px !important; font-size: 13.5px; border-radius: 9px !important; }
.ws-newch .btn { padding: 6px 12px; font-size: 13px; }
.ws-people { display: grid; gap: 2px; }
.ws-person { display: flex; align-items: center; gap: 9px; padding: 5px 8px; font-size: 13.5px; color: #444; }
.ws-person em { font-style: normal; color: #9a9a9a; font-size: 12px; }
.ws-person .ws-av { width: 24px; height: 24px; font-size: 10px; border-radius: 7px; }
.ws-av { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.ws-av-gap { flex: none; width: 36px; }
.ws-main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.ws-head { display: flex; align-items: baseline; gap: 12px; padding: 18px 28px; border-bottom: 1px solid #ebebeb; }
.ws-head b { font-size: 17px; }
.ws-head span { font-size: 13.5px; color: #8a8a8a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-msgs { flex: 1; overflow-y: auto; padding: 16px 28px 8px; }
.ws-msg { position: relative; display: flex; gap: 12px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; }
.ws-msg.is-join { padding-top: 1px; }
.ws-msg:hover { background: #fafafa; }
.ws-msg-b { flex: 1; min-width: 0; }
.ws-meta { margin: 0 0 2px; display: flex; gap: 8px; align-items: baseline; }
.ws-meta b { font-size: 14.5px; }
.ws-meta time { font-size: 12px; color: #9a9a9a; }
.ws-text { margin: 0; font-size: 14.5px; line-height: 1.55; color: #222; overflow-wrap: anywhere; }
.ws-gone { margin: 0; font-size: 13.5px; font-style: italic; color: #9a9a9a; }
.ws-del { position: absolute; top: 8px; right: 10px; display: none; padding: 5px; border: 1px solid #ebebeb; border-radius: 8px; background: #fff; color: #8a8a8a; cursor: pointer; }
.ws-del svg { width: 14px; height: 14px; display: block; }
.ws-msg:hover .ws-del { display: block; }
.ws-del:hover { color: var(--c-red); }
.ws-corpora, .ws-attach { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ws-attach:empty { display: none; }
.ws-corpus { position: relative; display: flex; align-items: center; gap: 10px; max-width: 360px; padding: 10px 12px; border: 1px solid #e6e8ee; border-radius: 12px; background: #fff; text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.cx-body .ws-corpus, .cx-body .ws-corpus:visited { color: #222; text-decoration: none; }
.ws-corpus:hover { border-color: #d5d9e3; box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.ws-corpus b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.ws-corpus small { display: block; font-size: 12px; color: #8a8a8a; }
.ws-corpus-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #fff; }
.ws-corpus-ic svg { width: 17px; height: 17px; }
.ws-x { margin-left: 4px; border: 0; background: none; font-size: 18px; line-height: 1; color: #9a9a9a; cursor: pointer; }
.ws-empty { display: grid; justify-items: center; gap: 6px; margin: 12vh auto 0; text-align: center; color: #6a6a6a; }
.ws-empty b { color: #222; font-size: 16px; }
.ws-empty p { margin: 0; font-size: 14px; }
.ws-empty-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--c-blue), var(--c-violet)); margin-bottom: 6px; }
.ws-empty-ic svg { width: 26px; height: 26px; }
.ws-compose { position: relative; margin: 0 28px 22px; padding: 8px; border: 1px solid #d9dce3; border-radius: 14px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .04); }
.ws-compose:focus-within { border-color: #b8c3e0; box-shadow: 0 0 0 3px #eef2fc; }
.ws-compose .ws-attach { margin: 2px 4px 8px; }
.ws-row { display: flex; align-items: flex-end; gap: 6px; }
.cx-body .ws-row textarea { flex: 1; min-height: 38px; max-height: 180px; padding: 8px 6px !important; border: 0 !important; box-shadow: none !important; resize: none; font: inherit; font-size: 14.5px; line-height: 1.5; outline: none; }
.ws-clip, .ws-send { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; cursor: pointer; }
.ws-clip { background: none; color: #6a6a6a; }
.ws-clip:hover { background: #f1f2f5; color: #222; }
.ws-send { background: var(--c-blue); color: #fff; }
.ws-send:hover { background: #2f54b0; }
.ws-clip svg, .ws-send svg { width: 18px; height: 18px; }
.ws-compose .ac-err { margin: 8px 4px 0; }
.ws-pick { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 8px); padding: 10px; border: 1px solid #e3e6ec; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); z-index: 5; }
.cx-body .ws-pick input { width: 100%; padding: 9px 12px !important; font-size: 14px; }
.ws-pick-l { display: grid; gap: 2px; margin-top: 8px; max-height: 300px; overflow: auto; }
.ws-pick-l button { display: grid; grid-template-columns: 10px minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 8px 10px; border: 0; border-radius: 9px; background: none; font: inherit; text-align: left; cursor: pointer; }
.ws-pick-l button:hover { background: #f4f6fa; }
.ws-pick-l b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-pick-l small { grid-column: 2; font-size: 12px; color: #8a8a8a; }
.ws-dot { grid-row: span 2; width: 10px; height: 10px; border-radius: 3px; }
@media (max-width: 900px) {
  .ws { grid-template-columns: 1fr; height: auto; }
  .ws-side { display: none; }
  .ws-main { height: calc(100vh - 60px); }
  .ws-msgs, .ws-head { padding-left: 16px; padding-right: 16px; }
  .ws-compose { margin: 0 12px 12px; }
}

/* Sidebar, tidied (Erik, 6 Nov): main items, "Your data", "Agents", then Settings and Help at the bottom. */
.cx-nav-bottom { margin-top: auto; padding-top: 10px; border-top: 1px solid #ebebeb; }
.cx-nav-bottom + .cx-foot { margin-top: 0; border-top: 0; padding-top: 4px; }
.cx-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--c-amber); }
.cx-subnav { display: flex; gap: 4px; margin: 4px 0 22px; padding: 4px; border-radius: 12px; background: #f4f5f8; width: max-content; max-width: 100%; overflow-x: auto; }
.cx-subnav a, .cx-body .cx-subnav a:visited { padding: 7px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: #555; text-decoration: none; white-space: nowrap; }
.cx-subnav a:hover { color: #222; }
.cx-body .cx-subnav a.is-on { background: #fff; color: #222; font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
