/* ai-guide.css — the AI Agent guide (ai-guide.js). White, hairlines, radius 8,
   lime for the one button that matters; no coloured edges (owner). */

.crm-guide__headrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
[dir="rtl"] .crm-guide__headrow { justify-content: flex-start; }
.crm-guide__book {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 8px;
  border: 1px solid #e6e8eb; background: #fff; color: #1d1b1c; font-size: 13px; font-weight: 500; cursor: pointer; flex: none;
}
.crm-guide__book .fi { font-size: 16px; line-height: 0; }
.crm-guide__book:hover { background: #1877f2; border-color: #1877f2; color: #fff; }

.crm-guide { position: fixed; inset: 0; z-index: 9990; background: rgba(16, 24, 40, .35); }
.crm-guide__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(980px, 100vw); background: #fff; color: #1d1b1c;
  display: flex; flex-direction: column; box-shadow: -8px 0 24px rgba(16, 24, 40, .12); font-size: 13.5px;
}
.crm-guide__top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #e6e8eb; }
.crm-guide__title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; white-space: nowrap; }
.crm-guide__title .fi { font-size: 18px; line-height: 0; }
.crm-guide__find { position: relative; flex: 1 1 auto; max-width: 420px; margin-inline-start: auto; }
.crm-guide__find .fi { position: absolute; inset-inline-start: 11px; top: 50%; transform: translateY(-50%); color: #6b7280; font-size: 14px; line-height: 0; }
input.crm-guide__search {
  width: 100%; height: 36px !important; margin: 0 !important; padding-inline-start: 34px !important; padding-inline-end: 10px !important;
  border: 1px solid #e6e8eb !important; border-radius: 8px !important; background: #fff !important; font-size: 13px !important; box-shadow: none !important;
}
.crm-guide__close { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; cursor: pointer; color: #6b7280; }
.crm-guide__close:hover { background: rgba(0, 0, 0, .05); }
.crm-guide__close .fi { font-size: 18px; line-height: 0; }

.crm-guide__main { flex: 1 1 auto; display: flex; min-height: 0; }
.crm-guide__toc { flex: 0 0 220px; padding: 14px 10px; border-inline-end: 1px solid #e6e8eb; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.crm-guide__tocitem {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none;
  font-size: 13px; color: #344054; text-align: start; cursor: pointer;
}
.crm-guide__tocitem .fi { font-size: 15px; line-height: 0; flex: none; }
.crm-guide__tocitem:hover { background: #f5f6f8; }
.crm-guide__tocitem.is-on { background: #f7fee7; color: #1d1b1c; font-weight: 600; }
.crm-guide__body { flex: 1 1 auto; overflow-y: auto; padding: 18px 24px 60px; display: flex; flex-direction: column; gap: 26px; }

.crm-guide__sec { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 12px; }
.crm-guide__sectitle { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 17px; font-weight: 600; }
.crm-guide__sectitle .fi { font-size: 18px; line-height: 0; }
.crm-guide__count { margin-inline-start: auto; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #f5f6f8; color: #344054; unicode-bidi: isolate; direction: ltr; }
.crm-guide__intro { margin: 0; color: #475467; line-height: 1.7; }

.crm-guide__item { border: 1px solid #e6e8eb; border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.crm-guide__itemhead { display: flex; align-items: center; gap: 10px; }
.crm-guide__itemtitle { font-size: 14.5px; }
.crm-guide__tag { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.crm-guide__tag .fi { font-size: 11px; line-height: 0; }
.crm-guide__tag.is-on { background: #dcfae6; color: #067647; }
.crm-guide__tag.is-todo { background: var(--crm-alert-bg, #fff1f2); color: var(--crm-alert-ink, #c8243b); }
.crm-guide__text { margin: 0; line-height: 1.75; color: #344054; }
.crm-guide__label { font-size: 12px; font-weight: 600; color: #6b7280; margin-top: 2px; }
.crm-guide__steps { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 5px; line-height: 1.7; }
.crm-guide__steps--sec { padding: 10px 14px 10px 34px; background: #f9fafb; border-radius: 8px; }
[dir="rtl"] .crm-guide__steps--sec { padding: 10px 34px 10px 14px; }
.crm-guide__result { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: 8px; background: #f7fee7; line-height: 1.7; }
.crm-guide__result .fi { font-size: 15px; line-height: 1.7; color: #4d7c0f; flex: none; }
.crm-guide__go {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; margin-top: 2px;
  border: 0; border-radius: 8px; background: #d4fb08; color: #000; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.crm-guide__go .fi { font-size: 14px; line-height: 0; }
.crm-guide__go:hover { background: #1877f2; color: #fff; }

@media (max-width: 720px) {
  .crm-guide__toc { display: none; }
  .crm-guide__body { padding: 14px 16px 60px; }
  .crm-guide__find { max-width: none; }
}

:root.dark .crm-guide__panel, .dark .crm-guide__panel { background: #16181d; color: #edefeb; }
:root.dark .crm-guide__item, .dark .crm-guide__item, :root.dark .crm-guide__top, .dark .crm-guide__top,
:root.dark .crm-guide__toc, .dark .crm-guide__toc { border-color: #2c3138; }
:root.dark .crm-guide__text, .dark .crm-guide__text, :root.dark .crm-guide__intro, .dark .crm-guide__intro { color: #c3c8cf; }
:root.dark .crm-guide__result, .dark .crm-guide__result, :root.dark .crm-guide__tocitem.is-on, .dark .crm-guide__tocitem.is-on { background: #1f2a12; color: #edefeb; }
:root.dark .crm-guide__book, .dark .crm-guide__book, :root.dark input.crm-guide__search, .dark input.crm-guide__search { background: #1b1e23 !important; border-color: #2c3138 !important; color: #edefeb; }

/* A list of points, one per line (the three levels). */
.crm-guide__points { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.7; color: #344054; list-style: disc; }
.crm-guide__points b { color: #1d1b1c; }
:root.dark .crm-guide__points, .dark .crm-guide__points { color: #c3c8cf; }
:root.dark .crm-guide__points b, .dark .crm-guide__points b { color: #edefeb; }

/* Ask Copilot, under the account's own name. */
.crm-guide__ask {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: 0; border-radius: 999px;
  background: #d4fb08; color: #000; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; flex: none;
}
.crm-guide__ask .fi { font-size: 15px; line-height: 0; }
.crm-guide__ask:hover { background: #1877f2; color: #fff; }
/* The item a "?" opened the guide on. */
.crm-guide__item { transition: border-color .3s ease, box-shadow .3s ease; scroll-margin-top: 12px; }
.crm-guide__item.is-target { border-color: #1d1b1c; box-shadow: 0 0 0 3px rgba(212, 251, 8, .6); }
/* The guide book beside each switch on the AI Assist page - the same book as the guide button. */
.crm-guide__q {
  display: inline-grid; place-items: center; width: 24px; height: 24px; margin-inline-start: 6px; border: 0; border-radius: 6px;
  background: none; color: #6b7280; font-size: 14px; cursor: pointer; vertical-align: middle; flex: none; padding: 0;
}
.crm-guide__q .fi { font-size: 14px; line-height: 0; }
.crm-guide__q:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
@media (max-width: 720px) { .crm-guide__ask span { display: none; } }

/* Arabic quoted inside English text stays one unbroken right-to-left piece. */
.crm-guide__ar { white-space: nowrap; unicode-bidi: isolate; }

/* Dark mode: the contents list, the level-3 steps box and the "?" (owner, 2026-10-03). */
:root.dark .crm-guide__tocitem, .dark .crm-guide__tocitem { color: #c3c8cf; }
:root.dark .crm-guide__tocitem:hover, .dark .crm-guide__tocitem:hover { background: #1f2329; color: #edefeb; }
:root.dark .crm-guide__steps, .dark .crm-guide__steps { color: #c3c8cf; }
:root.dark .crm-guide__steps--sec, .dark .crm-guide__steps--sec { background: #1b1e23; border: 1px solid #2c3138; }
:root.dark .crm-guide__label, .dark .crm-guide__label { color: #9aa1ab; }
:root.dark .crm-guide__count, .dark .crm-guide__count { background: #1f2329; color: #c3c8cf; }
:root.dark .crm-guide__close, .dark .crm-guide__close { color: #c3c8cf; }
:root.dark .crm-guide__close:hover, .dark .crm-guide__close:hover { background: #1f2329; }
:root.dark .crm-guide__q, .dark .crm-guide__q { background: none; color: #9aa1ab; }
:root.dark .crm-guide__q:hover, .dark .crm-guide__q:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
