/* ═══════════════════════════════════════════════════════════════════════════
   RNI HELP WIDGET — shared/rni-help-widget.css
   Recovery Network Inc. — single canonical copy (Law 1).

   LOCKED design standards:
     - White background only (#ffffff) — no gray fills.
     - Heebo font — inherited from the page; no font-family declared here.
     - Category/status markers use the 2px vertical-line pattern
       (::before, width:2px, height:75%, top:12.5%, border-radius:1px).
       No rounded-rect pill badges anywhere in this file.
   Colors pulled from rni-tokens.css variables where the surface defines
   them, with plain hex fallbacks so this file still renders correctly on
   a surface that hasn't loaded rni-tokens.css.
   ═══════════════════════════════════════════════════════════════════════════ */

#rni-help-widget-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
}

#rni-help-launcher {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--charcoal, #1A1A2E);
  color: #ffffff;
  cursor: pointer;
  box-shadow: var(--shadow-lg, 0 4px 10px rgba(0,0,0,0.10));
  display: flex;
  align-items: center;
  justify-content: center;
}

.rni-help-launcher-icon {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

#rni-help-panel {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: 320px;
  max-width: calc(100vw - 40px);
  max-height: 420px;
  background: #ffffff;
  border: 1px solid var(--border, #E3E8EE);
  border-radius: 12px;
  box-shadow: var(--shadow-xl, 0 8px 24px rgba(0,0,0,0.15));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.rni-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light, #F0F3F7);
}

.rni-help-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #1A1F36);
}

.rni-help-close {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--grey, #6B7280);
  cursor: pointer;
  padding: 2px 4px;
}

.rni-help-body {
  padding: 14px;
  overflow-y: auto;
  background: #ffffff;
}

.rni-help-loading {
  font-size: 13px;
  color: var(--muted, #697386);
}

/* ── 2px vertical-line marker pattern (LOCKED — no pill badges) ── */
.rni-help-item {
  position: relative;
  padding-left: 12px;
  margin-bottom: 12px;
}

.rni-help-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12.5%;
  width: 2px;
  height: 75%;
  border-radius: 1px;
  background: var(--muted, #697386);
}

.rni-help-item--video::before {
  background: var(--gold, #D4AF37); /* revenue/offering-shaped content */
}

.rni-help-item--chat::before,
.rni-help-item--chat-active::before {
  background: var(--exec-blue, #3B82F6); /* system/assistant-shaped content */
}

.rni-help-item-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted, #697386);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.rni-help-item-title {
  font-size: 13px;
  color: var(--ink, #1A1F36);
  margin-bottom: 10px;
}

.rni-help-video-btn,
.rni-help-chat-btn,
.rni-help-chat-send {
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.rni-help-video-btn {
  background: var(--gold, #D4AF37);
  color: #ffffff;
}

.rni-help-chat-btn {
  background: var(--exec-blue, #3B82F6);
  color: #ffffff;
}

.rni-help-divider {
  height: 1px;
  background: var(--border-light, #F0F3F7);
  margin: 12px 0;
}

.rni-help-chat-log {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 8px;
}

.rni-help-chat-msg {
  font-size: 13px;
  line-height: 1.5;
  padding: 6px 0;
}

.rni-help-chat-msg--user {
  color: var(--ink, #1A1F36);
  font-weight: 600;
}

.rni-help-chat-msg--assistant {
  color: var(--slate, #4F566B);
}

.rni-help-chat-msg--pending {
  color: var(--grey-light, #9CA3AF);
  font-style: italic;
}

.rni-help-chat-msg--system {
  color: var(--red, #DC2626);
}

.rni-help-chat-input-row {
  display: flex;
  gap: 6px;
}

.rni-help-chat-input {
  flex: 1;
  border: 1px solid var(--border, #E3E8EE);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
}

.rni-help-chat-input:disabled {
  background: #ffffff;
  opacity: 0.6;
}
