.cmr-help-open,
.cmr-help-mini {
  border: 1px solid #d8e3f0;
  background: #fff;
  color: #0f172a;
  border-radius: 6px;
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.cmr-help-mini {
  min-height: 28px;
  padding: 0 8px;
  font-size: 11px;
}
.cmr-help-open:hover,
.cmr-help-mini:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}
.cmr-help-center {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  color: #0f172a;
}
.cmr-help-center.open {
  display: block;
}
.cmr-tutorial-prompt-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10040;
  color: #0f172a;
}
.cmr-tutorial-prompt-modal.open {
  display: block;
}
.cmr-tutorial-prompt-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 31, 0.48);
}
.cmr-tutorial-prompt-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(460px, calc(100vw - 48px));
  transform: translate(-50%, -50%);
  border: 1px solid #c7d7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(7, 17, 31, 0.32);
  padding: 22px;
  display: grid;
  gap: 14px;
}
.cmr-tutorial-prompt-card h2 {
  margin: 0;
  color: #07111f;
  font-size: 22px;
  line-height: 1.2;
}
.cmr-tutorial-prompt-card p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
}
.cmr-tutorial-prompt-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cmr-help-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 31, 0.52);
}
.cmr-help-shell {
  position: absolute;
  inset: 32px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid #c7d7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(7, 17, 31, 0.32);
  overflow: hidden;
}
.cmr-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #d8e3f0;
  background: #f8fafc;
}
.cmr-help-title {
  display: grid;
  gap: 2px;
}
.cmr-help-title strong {
  font-size: 18px;
  line-height: 1.2;
}
.cmr-help-version {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}
.cmr-help-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cmr-help-close {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  border-radius: 6px;
  min-width: 34px;
  min-height: 34px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.cmr-help-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}
.cmr-help-sidebar {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-right: 1px solid #d8e3f0;
  background: #fbfdff;
}
.cmr-help-search-wrap {
  padding: 12px;
  border-bottom: 1px solid #e5edf6;
}
.cmr-help-search {
  width: 100%;
  min-height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 10px;
  color: #0f172a;
  font: 13px/1.4 "Segoe UI", system-ui, sans-serif;
}
.cmr-help-nav {
  min-height: 0;
  overflow: auto;
  padding: 8px;
}
.cmr-help-nav button {
  width: 100%;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #334155;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.cmr-help-nav button.active {
  border-color: #bfdbfe;
  background: #eaf2ff;
  color: #075adf;
}
.cmr-help-main {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 18px 22px 28px;
}
.cmr-help-topic {
  max-width: 980px;
  display: grid;
  gap: 14px;
}
.cmr-help-topic h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}
.cmr-help-topic h3 {
  margin-top: 8px;
  font-size: 16px;
}
.cmr-help-topic p,
.cmr-help-topic li {
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
}
.cmr-help-topic ul,
.cmr-help-topic ol {
  padding-left: 22px;
}
.cmr-help-note {
  border: 1px solid #bfdbfe;
  border-left: 4px solid #0f5eea;
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px 14px;
  color: #0f172a;
  font-size: 13px;
}
.cmr-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cmr-help-card {
  border: 1px solid #d8e3f0;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}
.cmr-help-card strong {
  display: block;
  margin-bottom: 5px;
  color: #0f172a;
}
.cmr-help-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.cmr-help-action {
  min-height: 34px;
  border: 1px solid #d8e3f0;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.cmr-help-action.primary {
  border-color: #0f5eea;
  background: #0f5eea;
  color: #fff;
}
.cmr-help-action.danger {
  border-color: #fecaca;
  color: #991b1b;
}
.cmr-help-action:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  background: #f1f5f9;
  color: #64748b;
}
.cmr-help-screenshot {
  border: 1px solid #d8e3f0;
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
}
.cmr-help-screenshot img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  display: block;
  background: #eef2f7;
}
.cmr-help-screenshot figcaption {
  padding: 8px 10px;
  color: #475569;
  font-size: 12px;
}
.cmr-help-search-result {
  display: grid;
  gap: 4px;
  border: 1px solid #d8e3f0;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}
.cmr-help-progress {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cmr-help-progress span {
  border: 1px solid #d8e3f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
}
.cmr-help-progress span.done {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}
.cmr-tutorial-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10070;
  pointer-events: none;
}
.cmr-tutorial-overlay.open {
  display: block;
}
.cmr-tutorial-dim {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 31, 0.28);
}
.cmr-tutorial-card {
  position: absolute;
  right: 26px;
  bottom: 58px;
  width: min(420px, calc(100vw - 52px));
  border: 1px solid #c7d7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 56px rgba(7, 17, 31, 0.25);
  padding: 14px;
  pointer-events: auto;
}
.cmr-tutorial-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.cmr-tutorial-card p {
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}
.cmr-help-highlight {
  position: relative !important;
  z-index: 10080 !important;
  outline: 4px solid #f59e0b !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.20) !important;
}
.cmr-tutorial-assistant {
  position: fixed;
  z-index: 10060;
  right: 22px;
  bottom: 68px;
  width: 360px;
  max-width: calc(100vw - 28px);
  border: 1px solid #c7d7eb;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 18px 48px rgba(7, 17, 31, 0.22);
  overflow: hidden;
}
.cmr-tutorial-assistant.closed {
  display: none;
}
.cmr-tutorial-assistant.collapsed {
  width: auto;
}
.cmr-assistant-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: #07111f;
  color: #f8fafc;
  cursor: move;
}
.cmr-assistant-head strong {
  font-size: 13px;
}
.cmr-assistant-controls {
  display: flex;
  gap: 6px;
}
.cmr-assistant-controls button,
.cmr-assistant-bubble {
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 6px;
  background: rgba(255,255,255,0.10);
  color: #fff;
  min-width: 28px;
  min-height: 26px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.cmr-assistant-bubble {
  display: none;
  background: #0f5eea;
  border-color: #0f5eea;
}
.cmr-tutorial-assistant.collapsed .cmr-assistant-body {
  display: none;
}
.cmr-tutorial-assistant.collapsed .cmr-assistant-title {
  display: none;
}
.cmr-tutorial-assistant.collapsed .cmr-assistant-bubble {
  display: inline-flex;
  align-items: center;
}
.cmr-assistant-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}
.cmr-assistant-body label {
  color: #475569;
  font-size: 12px;
  font-weight: 850;
}
.cmr-assistant-query {
  min-height: 78px;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px;
  resize: vertical;
  font: 13px/1.4 "Segoe UI", system-ui, sans-serif;
}
.cmr-assistant-answer {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
}
.cmr-assistant-answer-card {
  border: 1px solid #d8e3f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
  font-size: 12px;
  line-height: 1.45;
}
.cmr-assistant-answer-card strong {
  display: block;
  margin-bottom: 4px;
}
.cmr-help-prompt {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.cmr-help-prompt p {
  margin: 0;
  color: #334155;
  font-size: 12px;
}
.cmr-level2-evidence {
  display: grid;
  gap: 6px;
  border: 1px solid #d8e3f0;
  border-radius: 8px;
  background: #f8fbff;
  padding: 9px 10px;
  margin-top: 8px;
}
.cmr-evidence-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: #334155;
  font-size: 12px;
  line-height: 1.45;
}
.cmr-evidence-row b {
  color: #0f172a;
}
.cmr-triggering-text-pill {
  border-left: 3px solid #0f5eea;
  background: #eff6ff;
  color: #0f172a;
  padding: 3px 7px;
  border-radius: 6px;
  font-weight: 750;
}
.cmr-triggering-text-pill.active {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
  background: #fff7ed;
}
.cmr-feedback-action.cmr-open-passage {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #075adf;
}
@media (max-width: 900px) {
  .cmr-help-shell { inset: 14px; }
  .cmr-help-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .cmr-help-sidebar { border-right: 0; border-bottom: 1px solid #d8e3f0; max-height: 260px; }
  .cmr-help-grid { grid-template-columns: 1fr; }
  .cmr-tutorial-assistant { right: 12px; bottom: 58px; width: calc(100vw - 24px); }
  .cmr-evidence-row { grid-template-columns: 1fr; gap: 3px; }
}
