/* 
 * Leadership Book - Listerdale Life Sciences
 * Main Stylesheet
 * 
 * Colors:
 * - Primary Blue: #0088CC
 * - Dark Blue: #006699
 * - Light Blue: #E6F4FA
 * - Text Dark: #1e293b (slate-800)
 * - Text Medium: #475569 (slate-600)
 * - Text Light: #64748b (slate-500)
 * - Background: #f8fafc (slate-50)
 * - White: #ffffff
 * - Border: #e2e8f0 (slate-200)
 */

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
  color: #1e293b;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Section Dividers */
.section-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0 4px 0;
  margin-top: 12px;
}

.section-divider-number {
  background: #0088CC;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-divider-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #1e293b;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #cbd5e1, transparent);
}

.section-divider:first-child {
  margin-top: 0;
}

/* Start Here Diagnostic Section */
.diagnostic-section {
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0 16px;
}

.diagnostic-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.diagnostic-badge {
  background: #dc2626;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.diagnostic-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #1e293b;
}

.diagnostic-subtitle {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.5;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

@media (max-width: 1024px) {
  .diagnostic-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .diagnostic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.diagnostic-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.diagnostic-card:hover {
  border-color: #0088CC;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.12);
  transform: translateY(-2px);
}

.diagnostic-card-icon {
  font-size: 24px;
  line-height: 1;
}

.diagnostic-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #1e293b;
  line-height: 1.3;
}

.diagnostic-card-path {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

.diagnostic-card-path strong {
  color: #0088CC;
}

.diagnostic-card-arrow {
  font-size: 11px;
  color: #0088CC;
  font-weight: 600;
  margin-top: auto;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-content {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  height: 48px;
  width: auto;
}

.header-title {
  color: #0088CC;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Page Title Section */
.page-title-section {
  text-align: center;
  padding: 40px 16px;
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

.page-title {
  font-size: 48px;
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: -1px;
}

.page-title .highlight {
  color: #0088CC;
}

.page-title .normal {
  color: #334155;
}

.page-subtitle {
  color: #64748b;
  margin-top: 12px;
  font-size: 14px;
}

/* Main Content */
.main-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 12px 32px;
}

/* Module Grid */
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (min-width: 1024px) {
  .module-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

/* Module Card */
.module-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
  display: block;
}

.module-card:hover {
  border-color: #0088CC;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.15);
  transform: translateY(-2px);
}

.module-card-header {
  color: #0088CC;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.module-card-title {
  color: #1e293b;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.module-card-content {
  font-size: 12px;
  color: #475569;
}

/* Grid Spans */
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }

@media (min-width: 1024px) {
  .lg-col-span-2 { grid-column: span 2; }
  .lg-col-span-3 { grid-column: span 3; }
  .lg-col-span-4 { grid-column: span 4; }
  .lg-col-span-6 { grid-column: span 6; }
}

/* Golden Circle Diagram */
.golden-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 12px 0;
}

.circle {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 10px;
  color: white;
}

.circle-why {
  width: 50px;
  height: 50px;
  background: #0088CC;
}

.circle-how {
  width: 70px;
  height: 70px;
  background: #00a3e0;
}

.circle-what {
  width: 90px;
  height: 90px;
  background: #66c2e8;
}

/* Pyramid */
.pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 16px 0;
}

.pyramid-level {
  padding: 8px 12px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  color: white;
}

.pyramid-level-1 { width: 40%; background: #1e3a5f; }
.pyramid-level-2 { width: 55%; background: #2a4a6f; }
.pyramid-level-3 { width: 70%; background: #3a5a7f; }
.pyramid-level-4 { width: 85%; background: #4a6a8f; }
.pyramid-level-5 { width: 100%; background: #0088CC; }

/* 4 C's Matrix */
.matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.matrix-cell {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
}

.matrix-cell-title {
  color: #0088CC;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 4px;
}

.matrix-cell-desc {
  color: #64748b;
  font-size: 10px;
}

/* Numbered List */
.numbered-list {
  list-style: none;
  padding: 0;
}

.numbered-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11px;
  color: #475569;
}

.numbered-list .number {
  background: #0088CC;
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Bullet List */
.bullet-list {
  list-style: none;
  padding: 0;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11px;
  color: #475569;
}

.bullet-list li::before {
  content: "•";
  color: #0088CC;
  font-weight: bold;
}

/* Stage Indicators */
.stage-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.stage-badge {
  background: #0088CC;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.stage-desc {
  font-size: 10px;
  color: #475569;
}

/* Footer */
.footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 24px 16px;
  margin-top: 32px;
}

.footer-content {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-text {
  color: #64748b;
  font-size: 14px;
}

.footer-credit {
  color: #94a3b8;
  font-size: 12px;
}

/* ==================== */
/* MODULE PAGE STYLES   */
/* ==================== */

.module-page {
  min-height: 100vh;
  background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
}

/* Module Hero */
.module-hero {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 32px 16px;
}

.module-hero-content {
  max-width: 1200px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0088CC;
  font-size: 14px;
  margin-bottom: 16px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 1;
}

.module-hero h1 {
  font-size: 32px;
  color: #1e293b;
  margin-bottom: 8px;
}

.module-hero .subtitle {
  font-size: 18px;
  color: #0088CC;
  font-weight: 500;
}

/* Attribution Box */
.attribution-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.attribution-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 136, 204, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0088CC;
  flex-shrink: 0;
}

.attribution-content h4 {
  color: #1e293b;
  font-size: 16px;
  margin-bottom: 4px;
}

.attribution-content .source {
  color: #0088CC;
  font-size: 14px;
  font-weight: 500;
}

.attribution-content .description {
  color: #64748b;
  font-size: 13px;
  margin-top: 4px;
}

/* Module Content Section */
.module-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
}

.content-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.content-section h2 {
  color: #0088CC;
  font-size: 20px;
  margin-bottom: 16px;
}

.content-section p {
  color: #475569;
  line-height: 1.7;
  margin-bottom: 12px;
}

.content-section ul,
.content-section ol {
  color: #475569;
  padding-left: 24px;
  margin-bottom: 12px;
}

.content-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Key Takeaway Box */
.key-takeaway {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.1), rgba(0, 136, 204, 0.05));
  border: 1px solid rgba(0, 136, 204, 0.2);
  border-radius: 8px;
  padding: 24px;
  margin-top: 32px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.key-takeaway-icon {
  width: 40px;
  height: 40px;
  background: #0088CC;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.key-takeaway h3 {
  color: #0088CC;
  font-size: 18px;
  margin-bottom: 8px;
}

.key-takeaway p {
  color: #475569;
  line-height: 1.6;
}

/* Further Reading */
.further-reading {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  margin-top: 24px;
}

.further-reading h3 {
  color: #1e293b;
  font-size: 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.further-reading ul {
  list-style: none;
  padding: 0;
}

.further-reading li {
  color: #475569;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.further-reading li:last-child {
  border-bottom: none;
}

/* Navigation */
.module-nav {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 24px 16px;
}

.module-nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
}

.nav-card {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s;
}

.nav-card:hover {
  border-color: #0088CC;
  box-shadow: 0 2px 8px rgba(0, 136, 204, 0.1);
}

.nav-card .label {
  color: #94a3b8;
  font-size: 12px;
  margin-bottom: 4px;
}

.nav-card .title {
  color: #1e293b;
  font-weight: 600;
}

.nav-card.next {
  text-align: right;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 10px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.font-bold { font-weight: 700; }
.text-blue { color: #0088CC; }
.text-gray { color: #64748b; }

/* Interactive Diagnostic Modal */
.diag-trigger-wrapper {
  text-align: center;
  margin-top: 20px;
}

.diag-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1e293b;
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.diag-trigger-btn:hover {
  background: #0088CC;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.3);
}

.diag-trigger-btn .btn-icon {
  font-size: 18px;
}

.diag-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.diag-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.diag-modal {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: diagSlideUp 0.3s ease;
  transition: max-width 0.3s ease, max-height 0.3s ease;
}

.diag-modal.diag-modal-reading {
  max-width: 95vw;
  width: 95vw;
  max-height: 95vh;
  height: 95vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.diag-modal-reading .diag-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.diag-modal-reading .diag-reading {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@keyframes diagSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.diag-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
  z-index: 2;
}

.diag-close:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.diag-progress {
  display: flex;
  gap: 6px;
  padding: 20px 24px 0;
  justify-content: center;
}

.diag-progress-dot {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #e2e8f0;
  transition: background 0.3s ease;
}

.diag-progress-dot.active {
  background: #0088CC;
}

.diag-progress-dot.done {
  background: #22c55e;
}

.diag-body {
  padding: 24px;
}

.diag-step-label {
  font-size: 12px;
  font-weight: 600;
  color: #0088CC;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.diag-question {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
  margin-bottom: 24px;
}

.diag-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.diag-option {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.diag-option:hover {
  border-color: #0088CC;
  background: #f0f9ff;
  transform: translateX(4px);
}

.diag-back {
  background: none;
  border: none;
  color: #64748b;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  padding: 8px 0;
  margin-top: 16px;
  transition: color 0.15s ease;
}

.diag-back:hover {
  color: #0088CC;
}

/* Result styles */
.diag-result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.diag-result-icon {
  font-size: 32px;
  line-height: 1;
}

.diag-result-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

.diag-result-summary {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
}

.diag-result-path {
  margin-bottom: 20px;
}

.diag-result-path-label {
  font-size: 12px;
  font-weight: 600;
  color: #0088CC;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.diag-result-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
  cursor: pointer;
}

.diag-result-step:hover {
  border-color: #0088CC;
  background: #f0f9ff;
  transform: translateX(4px);
}

.diag-result-step-num {
  background: #0088CC;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.diag-result-step-content {
  flex: 1;
}

.diag-result-step-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
  margin-bottom: 2px;
}

.diag-result-step-why {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.diag-result-step-arrow {
  color: #0088CC;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.diag-result-reality {
  background: #fef2f2;
  border-left: 3px solid #dc2626;
  padding: 12px 16px;
  font-size: 13px;
  color: #991b1b;
  line-height: 1.5;
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
}

.diag-result-reality strong {
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.diag-result-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.diag-btn-start-reading {
  background: #0088CC;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.diag-btn-start-reading:hover {
  background: #006699;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.diag-restart-alt {
  background: white;
  color: #1e293b;
  border: 2px solid #e2e8f0;
  padding: 10px 24px;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.diag-restart-alt:hover {
  border-color: #0088CC;
  color: #0088CC;
}

/* Reading mode */
.diag-reading-nav {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 20px;
  flex-shrink: 0;
}

.diag-reading-back-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 10px;
  transition: color 0.15s ease;
}

.diag-reading-back-btn:hover {
  color: #0088CC;
}

.diag-reading-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.diag-reading-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  border: 2px solid #e2e8f0;
  background: white;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.diag-reading-step-pill:hover {
  border-color: #0088CC;
  color: #0088CC;
}

.diag-reading-step-pill.active {
  background: #0088CC;
  border-color: #0088CC;
  color: white;
}

.diag-reading-step-pill.done {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #166534;
}

.pill-num {
  font-weight: 700;
  font-size: 12px;
}

.pill-name {
  font-weight: 500;
}

.diag-reading-arrows {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.diag-reading-prev,
.diag-reading-next,
.diag-reading-done {
  background: none;
  border: 1px solid #e2e8f0;
  padding: 6px 16px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #1e293b;
}

.diag-reading-prev:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.diag-reading-next {
  background: #0088CC;
  border-color: #0088CC;
  color: white;
}

.diag-reading-next:hover {
  background: #006699;
}

.diag-reading-done {
  background: #22c55e;
  border-color: #22c55e;
  color: white;
}

.diag-reading-done:hover {
  background: #16a34a;
}

.diag-reading-frame-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.diag-reading-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #64748b;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  z-index: 1;
}

.diag-reading-frame {
  width: 100%;
  height: 100%;
  border: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .diag-modal.diag-modal-reading {
    max-width: 100vw;
    width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
  .diag-reading-steps {
    gap: 4px;
  }
  .diag-reading-step-pill {
    padding: 4px 10px;
    font-size: 11px;
  }
  .pill-name {
    display: none;
  }
}
