/*
 * CookieYes CMP は z-index 999999999 級 — チュートリアル UI はそれより上
 */
.ws-tut-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000000000;
  display: none;
  pointer-events: none;
}

.ws-tut-overlay.is-open {
  display: block;
  pointer-events: auto;
}

.ws-tut-card {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 680px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  z-index: 1000000020;
  display: none;
  pointer-events: auto;
}

.ws-tut-card.is-open {
  display: block;
}

.ws-tut-card .ws-tut-body {
  margin: 0;
  color: #495057;
  line-height: 1.45;
  max-height: 40vh;
  overflow-y: auto;
}

.ws-tut-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.ws-tut-highlight {
  position: relative;
  z-index: 1000000010 !important;
  border-radius: 12px;
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(13, 110, 253, 0.55),
    0 8px 30px rgba(0, 0, 0, 0.25);
  scroll-margin-top: 72px;
  scroll-margin-bottom: calc(var(--ws-tut-card-offset, 200px) + 24px);
}

body.ws-tut-active #wsTutorialIntroModal {
  z-index: 1000000030 !important;
}

body.ws-tut-active .modal-backdrop {
  z-index: 1000000025 !important;
}

body.ws-tut-active {
  padding-bottom: var(--ws-tut-card-offset, 200px);
}

.ws-tut-hint-hidden {
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* 翻訳演出中は要約を隠し、ヒット一覧に画面を譲る */
body.ws-tut-active #aiResearchResults.ws-tut-animating [data-ws-tut-summary-slot] {
  display: none !important;
}

body.ws-tut-active #aiResearchResults.ws-tut-animating .ai-pane-keyword {
  margin-bottom: 0.75rem !important;
  padding: 0.65rem 0.85rem !important;
}

body.ws-tut-active .ws-tut-hit-item {
  scroll-margin-top: 72px;
  scroll-margin-bottom: calc(var(--ws-tut-card-offset, 200px) + 24px);
}

body.ws-tut-active .ai-research-summary-panel .ws-llm-summary-title {
  font-size: 1rem;
}

body.ws-tut-active .ai-research-summary-panel > p.mt-3 {
  font-size: 0.95rem;
  line-height: 1.55;
}

.ws-tut-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
  font-weight: 700;
}

.ws-tut-mock-note {
  font-size: 12px;
  color: #6c757d;
  margin-top: 6px;
}
