/* Presentation shared by static pages and their generated markup. */

body .layout-hidden,
#dashboard-filter-panel .layout-hidden {
  display: none;
}

body .layout-block {
  display: block;
}

body .layout-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

body .link-inherit {
  text-decoration: none;
  color: inherit;
}

body .session-detail-label {
  font-weight: 600;
  color: var(--text-secondary);
}

body .text-primary {
  color: var(--text-primary);
}

body .icon-leading {
  margin-right: 8px;
}

body .text-nowrap {
  white-space: nowrap;
}

body .filter-description {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-secondary);
}

body .session-back-link {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
}

body .session-summary {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--surface-color);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

body .session-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

body .session-interactions-heading {
  margin-bottom: 16px;
  color: var(--text-primary);
}

body .interaction-session-link {
  color: #3b82f6;
  text-decoration: none;
}

body .interaction-image-container {
  margin-top: 12px;
}

body .transcription-correction {
  background-color: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
}

body .transcription-correction-title {
  color: #92400e;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
}

body .transcription-original {
  margin-bottom: 12px;
}

body .transcription-original-label {
  margin: 0 0 8px 0;
  color: #78350f;
  font-size: 14px;
  font-weight: 500;
}

body .transcription-original-text {
  background-color: white;
  border: 1px solid #fbbf24;
  border-radius: 4px;
  padding: 12px;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 13px;
  line-height: 1.4;
  color: #92400e;
}

body .transcription-corrected-label {
  margin: 0 0 8px 0;
  color: #059669;
  font-size: 14px;
  font-weight: 500;
}

body .transcription-corrected-text {
  background-color: #ecfdf5;
  border: 1px solid #10b981;
  border-radius: 4px;
  padding: 12px;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 13px;
  line-height: 1.4;
  color: #047857;
}

body .interaction-message-text {
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 12px;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 13px;
  line-height: 1.4;
}

body .transcription-raw {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
}

body .transcription-raw-label {
  margin: 0 0 8px 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

body .interaction-warning {
  background-color: #fff8e1;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
}

body .interaction-warning-title {
  color: #e65100;
  margin-top: 0;
}

body .interaction-warning-text {
  white-space: pre-wrap;
  color: #e65100;
}

body .icon-text-bottom {
  margin-right: 6px;
  vertical-align: text-bottom;
}

body .section-spacing {
  margin-bottom: 16px;
}

body .clickable-label {
  cursor: pointer;
}

body .chart-legend-written {
  background-color: rgba(52, 199, 89, 0.8);
}

body .chart-legend-audio {
  background-color: rgba(88, 86, 214, 0.8);
}

body .icon-text-middle {
  margin-right: 6px;
  vertical-align: middle;
}

body .success-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #10b981;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  font-weight: 500;
}

/* Statistics tooltips, previously inserted by renderUserStatsSummary. */
.myko-tooltip-trigger {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted #777;
}
.myko-tooltip {
  visibility: hidden;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  text-align: center;
  padding: 5px 10px;
  border-radius: 4px;
  z-index: 1000;
  width: max-content;
  max-width: 250px;
  opacity: 0;
  transition: opacity 0.3s;
}
.myko-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}
.myko-tooltip-trigger:hover .myko-tooltip {
  visibility: visible;
  opacity: 1;
}
