body {
  font-family: "Ancizar Sans", sans-serif;
}

/* Hijack notification bar */
.hijack-notification {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1060;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

body.hijack-active .navbar.fixed-top {
  top: 38px;
}

body.hijack-active .mf-main {
  margin-top: 8rem;
}

@media (min-width: 992px) {
  body.hijack-active .mf-main {
    margin-top: 6.5rem;
  }
}

.site-footer {
  padding: 0.45rem 0;
  font-size: 0.65rem;
}

.site-footer .container {
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
}

.mf-main {
  margin-top: 5rem;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 992px) {
  .mf-main {
    margin-top: 3.75rem;
  }
}


.speech {
          font-weight: 100; 
          font-size:14pt;
          border: 1px solid #dee2e6;
          border-radius: 4px;
          padding: 12px;
          margin-top: 8px;
          background-color: #f8f9fa;
        }
        
        
.turn {
  border-radius: 4px;
  padding-top: .2em;
  border: 1px solid #dee2e6;
}
.speaker { font-family:"Ancizar Sans", sans-serif; font-weight:500; }

/* Force override for common sans/serif elements */
html, body, p, span, div, h1, h2, h3, h4, h5, h6, a, li, ul, ol, blockquote, button, input, select, textarea, label, strong, em, b, i {
  font-family: "Ancizar Sans", sans-serif;
}

/* Preserve monospace fonts */
code, pre, kbd, samp, tt {
  font-family: "Inconsolata", monospace;
}

@media print {
  body {
    font-size: 0.7rem;
  }
}

@media print {
  .col-print-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}


.code {
  color: red;
  /* font-weight: bold; */
  text-decoration: underline;
  font-family: "Inconsolata", monospace;
}


.thinking {
  background-color: "lightgoldenrodyellow";
}

/* Offcanvas trigger strip on left side */
.offcanvas-trigger-strip {
  position: fixed;
  left: 0;
  top: 45px;
  bottom: 0;
  width: 32px;
  background: #e9ecef;
  border-right: 1px solid #dee2e6;
  cursor: pointer;
  z-index: 1020;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, width 0.2s;
}

.offcanvas-trigger-strip:hover {
  background: #dee2e6;
  width: 36px;
}

.offcanvas-trigger-strip .trigger-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 11px;
  font-weight: 500;
  color: #495057;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.offcanvas-trigger-strip:hover .trigger-label {
  color: #212529;
}

.offcanvas-trigger-strip i {
  color: #495057;
  font-size: 14px;
}

.offcanvas-trigger-strip:hover i {
  color: #212529;
}

.main-content-with-strip {
  margin-left: 36px;
}

/* Conversation detail three-column layout */
.turn-row {
  padding: 1rem 0.5rem;
  margin: 0;
}

/* Speaker label column */
.speaker-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #6c757d;
  text-align: right;
  padding-right: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.speaker-label .step-link {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  text-transform: lowercase;
  color: #adb5bd;
  text-decoration: none;
}

.speaker-label .step-link:hover {
  color: #6c757d;
}

/* Message bubbles - iMessage style */
.message-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 100%;
}

.message-bot {
  background-color: #007aff;
  color: white;
}

.message-user {
  background-color: #e5e5ea;
  color: #000;
}

.message-service {
  background-color: transparent;
  border: 2px solid #34c759;
  color: #34c759;
  font-style: italic;
}

.message-opening {
  background-color: transparent;
  border: 2px solid #007aff;
  color: #007aff;
}

.message-seeded {
  background-color: transparent;
  border: 2px dashed #6c757d;
  color: #495057;
}

/* Slot items with expandable content */
.slot-item {
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 6px 8px;
  background-color: #fafafa;
}

.slot-header {
  cursor: pointer;
}

.slot-header:hover {
  background-color: #f0f0f0;
}

.slot-preview {
  font-size: 0.7rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hide preview when full content is shown */
.slot-item.expanded .slot-preview {
  display: none !important;
}

.slot-item.expanded .slot-header {
  cursor: pointer;
}

.slot-full {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e9ecef;
}

.slot-full pre {
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  max-width: 100%;
  overflow-x: auto;
}

/* Actions column */
.actions-col {
  text-align: right;
}

/* Chat system messages (command responses) */
.chat-system-message {
  text-align: center;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0;
}
.chat-system-message .system-message-content {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bs-light);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  color: var(--bs-secondary);
}
.chat-system-message.error .system-message-content {
  background: var(--bs-danger-bg-subtle);
  color: var(--bs-danger);
}

/* CodeMirror JSON editor styling */
.CodeMirror {
  height: 150px;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  font-family: Monaco, Consolas, "Courier New", monospace;
  font-size: 15pt;
}
.CodeMirror .cm-string { color: #22863a; }
.CodeMirror .cm-number { color: #005cc5; }
.CodeMirror .cm-atom { color: #005cc5; }
.CodeMirror .cm-property { color: #6f42c1; }
