:root {
  --bg: #f5f0e8;
  --surface: #e8dfd3;
  --surface2: #ddd0bf;
  --border: #c9b89a;
  --text: #3d2b1f;
  --text-dim: #8a7560;
  --accent: #8b6914;
  --accent-light: #b8924a;
  --accent-dark: #6b4f0e;
  --green: #5a7d3a;
  --red: #a0522d;
  --yellow: #c9a227;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(61, 43, 31, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
/* Sticky top navigation: single horizontal header bar on top of screen (as in VideoDive) */
.top-nav-sticky {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(61, 43, 31, 0.08);
}

header,
.app-header {
  background: var(--surface);
  border-bottom: 2px solid var(--accent);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  min-width: 0;
  flex-shrink: 1;
}
.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
header h1 {
  font-size: 23.1px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--accent-dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-sub {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-top: 1px;
}
header span { color: var(--text-dim); font-size: 15.4px; }
#active-book-name {
  color: var(--text-dim);
  font-size: 13.2px;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: 240px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-app-switch {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  color: var(--accent-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-family: Georgia, serif;
  font-size: 15.4px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
}
.btn-app-switch:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-dark);
  box-shadow: 0 2px 6px rgba(107, 79, 14, 0.2);
}
.btn-app-switch:active {
  transform: translateY(1px);
}

/* Book library dropdown styles are integrated into .tabs banner below */

main { flex: 1; max-width: 1000px; margin: 0 auto; padding: 24px; overflow-x: clip; }

/* Upload card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.card h2 { font-size: 22px; margin-bottom: 16px; color: var(--accent-dark); }

.file-drop {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 36px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 16px;
}
.file-drop:hover { border-color: var(--accent); background: rgba(184, 146, 74, 0.05); }
.file-drop.has-file { border-color: var(--green); border-style: solid; background: rgba(90, 125, 58, 0.05); }
.file-drop p { color: var(--text-dim); font-size: 17.6px; }
.file-drop .filename { color: var(--green); font-weight: 600; }
input[type="file"] { display: none; }

.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 17.6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: Georgia, serif;
}
.btn:hover { background: var(--accent-dark); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.building { animation: blink 1s ease-in-out infinite; }
.btn-secondary {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-secondary:hover { background: var(--border); }

/* Progress logs */
.logs {
  background: #3d2b1f;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  max-height: 200px;
  overflow-y: auto;
  font-family: "SF Mono", Menlo, monospace;
  font-size: 14.3px;
  line-height: 1.6;
  color: #d4c4a8;
  white-space: pre-wrap;
  display: none;
  margin-bottom: 20px;
}
.logs.visible { display: block; }

/* Tabs / Menu banner (single horizontal line as in VideoDive) */
.tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  flex-shrink: 0;
}
.tab-nav-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.tab {
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 16.5px;
  cursor: pointer;
  color: var(--text-dim);
  transition: all 0.2s ease;
  font-family: Georgia, serif;
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tab.active {
  background: rgba(139, 105, 20, 0.14);
  color: var(--accent-dark);
  font-weight: 600;
}
.tab:hover:not(.active) {
  color: var(--text);
  background: rgba(139, 105, 20, 0.08);
}

/* Tab dropdown groups */
.tab-group { position: relative; display: inline-flex; align-items: center; }
.tab-group-label {
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 16.5px;
  cursor: pointer;
  color: var(--text-dim);
  transition: all 0.2s ease;
  font-family: Georgia, serif;
  font-weight: 500;
  user-select: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tab-group-label:hover {
  color: var(--text);
  background: rgba(139, 105, 20, 0.08);
}
.tab-group-label .caret { font-size: 12.1px; opacity: 0.7; }
.tab-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(61, 43, 31, 0.14);
  z-index: 1000;
  min-width: 190px;
  padding: 6px;
  flex-direction: column;
  overflow: hidden;
}
.tab-group:hover .tab-dropdown,
.tab-group.open .tab-dropdown { display: flex; }
.tab-dropdown .tab {
  border-radius: 6px;
  border: none;
  padding: 8px 12px;
  font-size: 15.4px;
  white-space: nowrap;
}
.tab-dropdown .tab:hover { background: var(--surface2); }
.tab-dropdown .tab.active {
  background: rgba(139, 105, 20, 0.15);
  color: var(--accent-dark);
  font-weight: 600;
  border-left: none;
}
.tab-group.has-active .tab-group-label {
  background: rgba(139, 105, 20, 0.14);
  color: var(--accent-dark);
  font-weight: 600;
}

/* Book library dropdown on extreme right of menu banner */
.book-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border-bottom: none;
  min-height: auto;
  position: relative;
  flex-shrink: 0;
}
.book-bar-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  cursor: pointer;
  font-size: 15.4px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.book-bar-label:hover { border-color: var(--accent); background: var(--surface); }
.book-bar-label .caret { font-size: 11px; color: var(--text-dim); }
.book-bar-title { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.book-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 100;
  min-width: 280px;
  max-width: 400px;
  max-height: 60vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.book-dropdown-header {
  padding: 8px 14px;
  font-size: 12.1px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.book-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}
.book-dropdown-item:last-child { border-bottom: none; }
.book-dropdown-item:hover { background: var(--surface2); }
.book-dropdown-item.active { background: var(--accent-light, rgba(59,130,246,0.08)); border-left: 3px solid var(--accent); }
.book-dropdown-item .bd-title { font-size: 15.4px; font-weight: 600; color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; }
.book-dropdown-item .bd-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  opacity: 0.65;
}
.book-dropdown-item:hover .bd-actions { opacity: 1; }
.book-dropdown-item .bd-edit,
.book-dropdown-item .bd-delete {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 16.5px;
  padding: 1px 4px;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.15s;
}
.book-dropdown-item .bd-edit:hover { color: var(--accent); }
.book-dropdown-item .bd-delete:hover { color: var(--red); }
.btn-edit-pencil {
  transition: color 0.15s, transform 0.15s;
}
.btn-edit-pencil:hover {
  color: var(--accent) !important;
  transform: scale(1.15);
}
.book-dropdown-empty { padding: 12px 14px; color: var(--text-dim); font-size: 14.3px; font-style: italic; }
.book-bar-add {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 19.8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}
.book-bar-add:hover { background: var(--accent-dark); }

/* Content panels */
.panel { display: none; }
.panel.active { display: block; }

/* Empty state */
.empty-state {
  text-align: center;
  color: var(--text-dim);
  padding: 60px 20px;
  font-style: italic;
  font-size: 17.6px;
}

/* Guide */
.guide-text { font-size: 18.7px; line-height: 1.8; color: var(--text); }
.guide-text p { margin-bottom: 16px; }

/* Reflection Prompts */
.reflection-prompt { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin-top: 12px; }
.reflection-label { font-size: 13.2px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.reflection-text { font-size: 16.5px; color: var(--text); line-height: 1.6; font-style: italic; margin-bottom: 10px; }
.reflection-input { width: 100%; min-height: 80px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-family: Georgia, serif; font-size: 15.4px; line-height: 1.6; resize: vertical; background: var(--surface); color: var(--text); box-sizing: border-box; }
.reflection-input:focus { outline: none; border-color: var(--accent); }
.reflection-btn { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 8px 20px; font-size: 15.4px; cursor: pointer; margin-top: 8px; }
.reflection-btn:hover { background: var(--accent-dark); }
.reflection-feedback { margin-top: 10px; padding: 10px 14px; border-radius: 8px; font-size: 15.4px; line-height: 1.6; display: none; }
.reflection-feedback.show { display: block; }
.reflection-feedback.good { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.reflection-feedback.needs-work { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }

/* Mode toggle bar (Q&A Socratic, Flashcards Self-Test) */
.mode-toggle-bar { display: flex; align-items: center; gap: 8px; padding: 8px 0 12px; flex-wrap: wrap; }
.mode-btn { padding: 6px 16px; font-size: 15.4px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface2); color: var(--text-dim); cursor: pointer; transition: all 0.2s; font-family: Georgia, serif; }
.mode-btn:hover { border-color: var(--accent); color: var(--accent); }
.mode-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.fc-progress { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14.3px; color: var(--text-dim); }
.fc-progress-bar { width: 120px; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.fc-progress-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.3s ease; width: 0%; }

/* Self-Test area */
.fc-test-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 24px; margin-bottom: 16px; }
.fc-test-q { font-size: 18.7px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.fc-test-hint { font-size: 14.3px; color: var(--text-dim); margin-bottom: 12px; }
.fc-test-input { width: 100%; min-height: 100px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; font-family: Georgia, serif; font-size: 15.4px; line-height: 1.6; resize: vertical; background: var(--surface); color: var(--text); box-sizing: border-box; }
.fc-test-input:focus { outline: none; border-color: var(--accent); }
.fc-test-actions { display: flex; gap: 8px; margin-top: 12px; }
.fc-test-feedback { margin-top: 16px; padding: 14px 16px; border-radius: 8px; font-size: 15.4px; line-height: 1.6; display: none; }
.fc-test-feedback.show { display: block; }
.fc-test-feedback.good { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.fc-test-feedback.partial { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.fc-test-feedback.poor { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.fc-test-nav { display: flex; gap: 8px; margin-top: 12px; justify-content: space-between; }

/* Socratic mode chat */
.chat-msg.socratic-question { background: var(--accent-light, rgba(59,130,246,0.1)); border-left: 3px solid var(--accent); }

/* Mind Map */
.mindmap-controls { display: flex; gap: 8px; margin-bottom: 16px; }
.mindmap-controls .btn { padding: 6px 16px; font-size: 14.3px; }
.mindmap-tree { font-family: Georgia, serif; }
.mindmap-node { margin-left: 0; }
.mindmap-children { margin-left: 20px; border-left: 2px solid var(--border); padding-left: 16px; overflow: hidden; transition: max-height 0.3s ease, opacity 0.2s ease; }
.mindmap-children.collapsed { max-height: 0; opacity: 0; overflow: hidden; }
.mindmap-children.expanded { max-height: 5000px; opacity: 1; }
.mindmap-item { padding: 8px 0; cursor: pointer; display: flex; align-items: flex-start; gap: 8px; }
.mindmap-item .mm-toggle { font-size: 15.4px; color: var(--text-dim); width: 16px; flex-shrink: 0; user-select: none; line-height: 1.5; }
.mindmap-item .mm-icon { font-size: 17.6px; flex-shrink: 0; line-height: 1.5; }
.mindmap-item .mm-label { font-size: 16.5px; color: var(--text); line-height: 1.5; }
.mindmap-item .mm-label .mm-detail { font-size: 14.3px; color: var(--text-dim); font-weight: normal; margin-top: 4px; line-height: 1.6; }
.mindmap-item .mm-label .mm-quote { font-size: 14.3px; color: var(--text-dim); font-style: italic; margin-top: 4px; padding-left: 12px; border-left: 2px solid var(--border); line-height: 1.6; }
.mindmap-item .mm-label .mm-why { font-size: 14.3px; color: var(--accent-dark); margin-top: 4px; line-height: 1.6; }
.mindmap-root .mm-label { font-size: 19.8px; font-weight: 700; color: var(--accent-dark); }
.mindmap-branch .mm-label { font-size: 17.6px; font-weight: 600; color: var(--text); }
.mindmap-leaf .mm-label { font-size: 15.4px; font-weight: normal; color: var(--text); }
.mindmap-item:hover .mm-label { color: var(--accent); }
.mindmap-leaf:hover .mm-label { color: var(--text); }
.mindmap-canvas { position: relative; }
#mindmap-svg { position: absolute; top: 0; left: 0; z-index: 0; pointer-events: none; }
#mindmap-tree { position: relative; z-index: 1; }
.mindmap-line { fill: none; stroke: var(--border); stroke-width: 1.5; opacity: 0.9; }
.mm-leaf-label { font-size: 12.1px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); font-weight: 600; margin-bottom: 2px; }
.mindmap-branch > .mindmap-item { padding: 10px 0; }
.mindmap-root > .mindmap-item { padding: 4px 0 10px 0; }

/* 3 Orders of Thinking — cascading consequences page */
.ot-page { max-width: 860px; margin: 0 auto; font-family: Georgia, serif; }
.ot-page-title { font-size: 28.6px; color: var(--accent-dark); margin: 8px 0 12px 0; line-height: 1.3; }
.ot-opening { font-size: 17.6px; font-style: italic; color: var(--text-dim); line-height: 1.7; border-left: 3px solid var(--border); padding-left: 14px; margin: 0 0 24px 0; }
.ot-idea { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px 18px 22px; margin-bottom: 24px; }
.ot-idea-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ot-idea-num { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17.6px; flex-shrink: 0; }
.ot-idea-title { font-size: 20.9px; margin: 0; line-height: 1.35; }
.ot-seed { font-size: 15.4px; color: var(--text-dim); line-height: 1.65; background: rgba(139, 105, 20, 0.06); border-radius: 8px; padding: 10px 14px; margin: 0 0 16px 0; }
.ot-seed-label, .ot-insight-label, .ot-closing-label { display: block; font-size: 12.1px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--accent-dark); margin-bottom: 4px; }
/* The three horizons cascade: each order widens the margin like a lens pulling back */
.ot-order { border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; line-height: 1.65; font-size: 16px; }
.ot-order p { margin: 0; }
.ot-order-1 { margin-left: 0; background: rgba(139, 105, 20, 0.05); border-left: 3px solid #c9b89a; }
.ot-order-2 { margin-left: 28px; background: rgba(139, 105, 20, 0.09); border-left: 3px solid #8b6914; }
.ot-order-3 { margin-left: 56px; background: rgba(139, 105, 20, 0.14); border-left: 3px solid var(--accent-dark); }
.ot-scope { font-size: 13.2px; font-weight: 700; letter-spacing: 0.03em; color: var(--accent-dark); margin-bottom: 6px; }
.ot-insight { font-size: 15.4px; line-height: 1.65; border-left: 3px solid var(--accent); padding-left: 14px; margin-top: 16px; color: var(--text); }
.ot-closing { font-size: 17.1px; font-style: italic; line-height: 1.7; color: var(--text-dim); background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; margin-top: 8px; }
@media (max-width: 700px) {
  .ot-order-2 { margin-left: 12px; }
  .ot-order-3 { margin-left: 24px; }
}

/* Strawman & Steelman — challenge the ideas page */
.ss-page { max-width: 860px; margin: 0 auto; font-family: Georgia, serif; }
.ss-page-title { font-size: 28.6px; color: var(--accent-dark); margin: 8px 0 12px 0; line-height: 1.3; }
.ss-framing { font-size: 17.6px; font-style: italic; color: var(--text-dim); line-height: 1.7; border-left: 3px solid var(--border); padding-left: 14px; margin: 0 0 24px 0; }
.ss-section-label { font-size: 13.2px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--accent-dark); margin: 20px 0 10px 0; }
.ss-straws { display: flex; flex-direction: column; gap: 12px; }
.ss-straw { background: rgba(139, 105, 20, 0.05); border: 1px dashed var(--border); border-radius: 10px; padding: 14px 18px; }
.ss-straw p { margin: 0; font-size: 16px; line-height: 1.65; }
.ss-steel { border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 14px; }
.ss-steel-for { background: rgba(139, 105, 20, 0.05); border-left: 4px solid #8b6914; }
.ss-steel-against { background: rgba(90, 64, 50, 0.05); border-left: 4px solid #5a4032; }
.ss-heading { font-size: 18.7px; margin: 0 0 10px 0; line-height: 1.35; }
.ss-argument { font-size: 16px; line-height: 1.65; }
.ss-argument p { margin: 0 0 10px 0; }
.ss-point { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; font-size: 16.5px; line-height: 1.55; }
.ss-point-label { display: block; font-size: 12.1px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--accent-dark); margin-bottom: 3px; }
.ss-insight { margin-top: 12px; font-size: 14.9px; color: var(--text-dim); border-left: 3px solid var(--border); padding-left: 12px; line-height: 1.6; }
.ss-crux { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; }
.ss-crux p { font-size: 16.5px; line-height: 1.7; margin: 0 0 12px 0; }
.ss-takeaway { border-left: 3px solid var(--accent); padding-left: 14px; font-size: 16px; line-height: 1.65; }

/* Further Reading */
.fr-item { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; margin-bottom: 12px; }
.fr-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.fr-type { font-size: 12.1px; text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 8px; border-radius: 4px; background: var(--accent-light, rgba(59,130,246,0.15)); color: var(--accent-dark, #1e40af); }
.fr-type.book { background: rgba(59,130,246,0.15); color: #1e40af; }
.fr-type.article { background: rgba(16,185,129,0.15); color: #065f46; }
.fr-type.essay { background: rgba(168,85,247,0.15); color: #6b21a8; }
.fr-title { font-size: 17.6px; font-weight: 600; color: var(--text); }
.fr-author { font-size: 14.3px; color: var(--text-dim); margin-bottom: 6px; }
.fr-why { font-size: 15.4px; color: var(--text); line-height: 1.5; margin-bottom: 8px; }
.fr-synopsis { font-size: 14.3px; color: var(--text-dim); line-height: 1.6; padding: 8px 12px; background: var(--surface); border-radius: 6px; margin-bottom: 8px; border-left: 3px solid var(--border); }
.fr-syn-btn { background: transparent; border: 1px solid var(--border); border-radius: 6px; padding: 3px 12px; font-size: 13.2px; cursor: pointer; color: var(--text-dim); margin-right: 8px; }
.fr-syn-btn:hover { color: var(--accent); border-color: var(--accent); }
.fr-link { font-size: 14.3px; color: var(--accent); text-decoration: none; word-break: break-all; }
.fr-link:hover { text-decoration: underline; }

/* Podcast */
.podcast-header h2 { margin: 0 0 4px; font-size: 22px; color: var(--text); }
.podcast-player-bar { display: flex; align-items: center; gap: 12px; padding: 12px 0; margin-bottom: 8px; }
.pod-play-btn { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 8px 18px; font-size: 15.4px; cursor: pointer; white-space: nowrap; transition: opacity 0.15s; }
.pod-play-btn:hover { opacity: 0.88; }
.pod-progress-wrap { flex: 1; height: 6px; background: var(--surface2); border-radius: 3px; overflow: hidden; }
.pod-progress { height: 100%; width: 0%; background: var(--accent); border-radius: 3px; transition: width 0.2s; }
.pod-time { font-size: 13.2px; color: var(--text-dim); white-space: nowrap; min-width: 80px; text-align: right; }
.podcast-controls { display: flex; gap: 20px; flex-wrap: wrap; padding: 8px 0 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px; align-items: center; }
.pod-voice-label, .pod-rate-label { font-size: 14.3px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.pod-voice-select { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; font-size: 14.3px; color: var(--text); max-width: 200px; }
.pod-rate-slider { width: 80px; }
#pod-rate-val { font-size: 13.2px; min-width: 32px; }
.pod-generate-audio-btn { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 8px 18px; font-size: 15.4px; cursor: pointer; white-space: nowrap; transition: opacity 0.15s; }
.pod-generate-audio-btn:hover { opacity: 0.88; }
.pod-generate-audio-btn:disabled { opacity: 0.5; cursor: wait; }
.podcast-transcript { max-height: 500px; overflow-y: auto; padding-right: 8px; }
.pod-transcript-seg { display: flex; gap: 10px; padding: 10px 14px; border-radius: 8px; margin-bottom: 4px; transition: background 0.2s; }
.pod-transcript-seg.pod-active-seg { background: var(--surface2); box-shadow: 0 0 0 2px var(--accent); }
.pod-speaker-name { font-size: 13.2px; font-weight: 700; min-width: 50px; padding-top: 2px; flex-shrink: 0; }
.pod-speaker-a .pod-speaker-name { color: #3b82f6; }
.pod-speaker-b .pod-speaker-name { color: #a855f7; }
.pod-speaker-text { font-size: 15.4px; line-height: 1.6; color: var(--text); }

/* Loading spinner (Further Reading generation, etc.) */
.spinner {
  display: inline-block;
  width: 34px;
  height: 34px;
  border: 4px solid rgba(128, 128, 128, 0.22);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Figures */
.fig-item { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; margin-bottom: 14px; }
.fig-index { font-size: 12.1px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); margin-bottom: 8px; }
.fig-image { display: block; max-width: 100%; max-height: 420px; margin: 0 auto 10px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.fig-chapter { font-size: 14.3px; color: var(--accent-dark); font-style: italic; margin-bottom: 6px; }
.fig-caption { font-size: 15.4px; color: var(--text); line-height: 1.5; }
.fig-caption.dim { color: var(--text-dim); font-style: italic; }

/* PDF info bar */
.pdf-info {
  background: var(--surface2);
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 16px;
  display: flex;
  gap: 24px;
  font-size: 15.4px;
  flex-wrap: wrap;
}
.pdf-info .field { display: flex; gap: 6px; }
.pdf-info .label { color: var(--text-dim); }
.pdf-info .val { color: var(--text); font-weight: 600; }

/* Page Timestamp */
.page-timestamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.3px;
  color: var(--text-dim);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  margin-bottom: 16px;
  font-style: normal;
  line-height: 1.4;
}
.page-timestamp .ts-icon {
  color: var(--accent);
  font-size: 14.3px;
}
.page-timestamp .ts-val {
  font-weight: 600;
  color: var(--text);
}

/* Lessons */
.lesson {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 16px;
}
.lesson h3 { color: var(--accent-dark); margin-bottom: 10px; font-size: 20.9px; }
.lesson .quote {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin: 12px 0;
  font-style: italic;
  color: var(--text-dim);
  font-size: 16.5px;
}
.lesson .why { margin-top: 12px; line-height: 1.6; font-size: 16.5px; }

/* Flashcards */
.flashcard {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  margin-bottom: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.flashcard:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.flashcard .fc-q {
  padding: 18px 22px;
  font-size: 17.6px;
  font-weight: 600;
}
.flashcard .fc-a {
  padding: 0 22px 18px;
  font-size: 16.5px;
  color: var(--text-dim);
  line-height: 1.6;
  display: none;
}
.flashcard.flipped .fc-a { display: block; }
.flashcard .fc-hint { font-size: 14.3px; color: var(--text-dim); padding: 0 22px 14px; font-style: italic; }
.flashcard.flipped .fc-hint { display: none; }

/* Synopsis box */
.synopsis-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.synopsis-box h3 { font-size: 15.4px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 8px; }
.synopsis-box p { margin-bottom: 14px; line-height: 1.7; }
.synopsis-box p:last-child { margin-bottom: 0; }

/* Chapter-by-chapter summaries */
.sub-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem;
  color: var(--accent-dark, var(--text));
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.chapters-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chapter-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  background: var(--surface2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.chapter-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
  border-color: var(--accent);
}
.chapter-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.155rem;
  margin: 0 0 6px 0;
  color: var(--accent-dark, var(--text));
  font-weight: 600;
}
.chapter-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 1.034rem;
  line-height: 1.6;
}

/* Section heading (e.g. after synopsis, before lesson cards) */
.section-heading { font-size: 24.2px; font-weight: 700; color: var(--accent-dark); margin: 24px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

/* To-Dos */
.resource-group { margin-bottom: 20px; }
.resource-group h3 { font-size: 19.8px; margin-bottom: 10px; color: var(--accent-dark); }
.resource-group ul { list-style: none; }
.resource-group li {
  background: var(--surface2);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 6px;
  font-size: 16.5px;
  line-height: 1.4;
}

/* Contrarian */
.counterarg {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 16px;
}
.counterarg .ca-claim {
  font-size: 17.6px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 10px;
}
.counterarg .ca-counter {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 12px;
}
.counterarg .ca-evidence {
  font-size: 15.4px;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.counterarg .ca-perspective {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 14.3px;
  color: var(--text-dim);
  font-style: italic;
}

/* Consensus */
.proarg {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green, #22c55e);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 16px;
}
.proarg .pa-claim {
  font-size: 17.6px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 10px;
}
.proarg .pa-pro {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 12px;
}
.proarg .pa-evidence {
  font-size: 15.4px;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.proarg .pa-perspective {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 14.3px;
  color: var(--text-dim);
  font-style: italic;
}

/* Downloads tab */
.downloads-notice {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.downloads-notice h3 { font-size: 15.4px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 8px; }
.downloads-notice p { font-size: 16.5px; line-height: 1.7; color: var(--text); }
.download-section {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.download-section h4 { font-size: 17.6px; color: var(--accent-dark); margin: 0; }
.download-section .btn-group { display: flex; gap: 8px; }
.dl-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.dl-check input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--green, #22c55e); cursor: pointer; flex-shrink: 0; }
.download-all-bar {
  margin-top: 16px;
  padding: 20px;
  text-align: center;
}

/* Read File */
.reader-text {
  font-size: 17.6px;
  line-height: 1.8;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 32px;
  max-height: 600px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.reader-text h3 { color: var(--accent-dark); margin: 24px 0 12px 0; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.reader-text p { margin-bottom: 14px; }

/* Build report */
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.report-stat {
  background: var(--surface2);
  border-radius: 8px;
  padding: 16px 20px;
}
.report-stat .label { font-size: 15.4px; color: var(--text-dim); margin-bottom: 4px; }
.report-stat .value { font-size: 30.8px; font-weight: 700; }
.report-stat .value.ok { color: var(--green); }
.report-stat .value.bad { color: var(--red); }

/* Q&A */
.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  max-height: 400px;
  overflow-y: auto;
}
.chat-msg {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 85%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}
.chat-msg.user { background: var(--accent); color: #fff; align-self: flex-end; }
.chat-msg.bot { background: var(--surface2); border: 1px solid var(--border); align-self: flex-start; }
.chat-msg.bot p { margin: 0 0 10px 0; }
.chat-msg.bot p:last-child { margin-bottom: 0; }
.chat-msg.bot ul, .chat-msg.bot ol { margin: 6px 0 10px 0; padding-left: 22px; }
.chat-msg.bot li { margin-bottom: 4px; }
.chat-msg.bot br { display: block; content: ""; margin-top: 6px; }
.chat-input { display: flex; gap: 8px; align-items: flex-end; }
.chat-input textarea {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 16.5px;
  font-family: Georgia, serif;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  overflow-y: auto;
  line-height: 1.5;
}
.chat-input textarea:focus { outline: none; border-color: var(--accent); }
.chat-input textarea:disabled { opacity: 0.5; }

/* Build status badge */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 15.4px;
  font-weight: 600;
  font-style: normal;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-badge.running { background: var(--yellow); color: #3d2b1f; animation: blink 1s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.status-badge.done { background: var(--green); color: #fff; }
.status-badge.error { background: var(--red); color: #fff; }
.status-badge.idle { background: var(--surface2); color: var(--text-dim); }

/* Slides */
.slide-deck {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
}
.slide {
  display: none;
  padding: 40px 48px;
  min-height: 380px;
  overflow-y: auto;
}
.slide.active { display: block; }
.slide h3 {
  font-size: 30.8px;
  color: var(--accent-dark);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
}
.slide ul { list-style: none; margin-bottom: 20px; padding-left: 0; }
.slide li {
  font-size: 19.8px;
  line-height: 1.7;
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.slide li:before {
  content: "\2022";
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 22px;
  line-height: 1.7;
}
.slide .slide-quote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  font-style: italic;
  font-size: 17.6px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.slide .slide-notes {
  font-size: 15.4px;
  color: var(--text-dim);
  background: var(--surface2);
  border-radius: 6px;
  padding: 12px 16px;
  line-height: 1.5;
}
.slide-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--surface2);
  border-top: 1px solid var(--border);
}
.slide-nav .counter { font-size: 16.5px; color: var(--text-dim); }
.slide-nav button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 16.5px;
  cursor: pointer;
  font-family: Georgia, serif;
}
.slide-nav button:disabled { opacity: 0.3; cursor: not-allowed; }

/* Download buttons */
.download-bar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}
.btn-download {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--accent-dark);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 15.4px;
  font-weight: 600;
  cursor: pointer;
  font-family: Georgia, serif;
  transition: all 0.2s;
}
.btn-download:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.btn-download.md {
  background: var(--bg);
  color: var(--text-dim);
}

/* Print styles — only show the active panel when printing */
@media print {
  body { background: #f5f0e8; color: #3d2b1f; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .top-nav-sticky, header, .card, .logs, .pdf-info, .tabs, .slide-nav, .download-bar, .chat-input, .mindmap-controls, .podcast-controls, .podcast-player-bar, .mode-toggle-bar, .pod-generate-audio-btn { display: none !important; }
  .panel { display: none !important; }
  .panel.active { display: block !important; }
  .slide { display: block !important; page-break-after: always; }
  .flashcard .fc-a { display: block !important; }
  .flashcard .fc-hint { display: none !important; }
  .page-timestamp { display: inline-flex !important; margin-bottom: 20px; border-color: #c9b89a; background: #e8dfd3; color: #5a4032; }
}

/* --- Orientation popup (shown once per book, right after a fresh build) --- */
.orientation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 43, 31, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.orientation-overlay[hidden] { display: none; }
.orientation-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  max-width: 480px;
  width: 90%;
}
.orientation-box h2 { color: var(--accent-dark); margin-bottom: 12px; }
#orientation-gist p { color: var(--text); line-height: 1.5; margin-bottom: 16px; }
.orientation-prompt { color: var(--text-dim); font-size: 15.4px; margin-bottom: 10px; }
.orientation-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.orientation-option {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15.4px;
  color: var(--text);
  cursor: pointer;
}
.orientation-option:hover { border-color: var(--accent-light); background: var(--surface2); }
.orientation-dismiss {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 14.3px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* --- API Key panel (far right of the main menu bar) --- */
.key-bar { position: relative; flex-shrink: 0; }
.key-bar-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  cursor: pointer;
  font-size: 15.4px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.key-bar-label:hover { border-color: var(--accent); background: var(--surface); }
.key-bar-label .caret { font-size: 11px; color: var(--text-dim); }
.key-panel[hidden] { display: none; }
.key-panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
  z-index: 200;
}
.key-panel-hint { font-size: 13.2px; color: var(--text-dim); margin-bottom: 12px; line-height: 1.4; }
.key-panel label {
  display: block;
  font-size: 12.1px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
  margin-bottom: 4px;
  font-weight: 600;
}
.key-panel .muted-inline { color: var(--text-dim); font-weight: 400; font-size: 12.1px; text-transform: none; letter-spacing: normal; }
.key-panel select,
.key-panel input[type="text"],
.key-panel input[type="password"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  font-size: 14.3px;
  color: var(--text);
  margin-bottom: 12px;
}
.key-panel select:focus,
.key-panel input:focus { outline: 2px solid var(--accent-light); outline-offset: 1px; }
.key-pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 10px; background: var(--border); color: var(--text-dim); margin-left: 4px; vertical-align: middle; text-transform: none; }
.key-pill.set { background: #d9e8d2; color: var(--green); }
.key-panel-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.key-panel-actions button {
  font-family: inherit;
  font-weight: 600;
  font-size: 13.2px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.key-panel-actions .btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.key-panel-actions .btn-secondary:hover { background: var(--border); }
.key-panel-actions .btn-ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--border); }
.key-panel-actions .btn-ghost:hover { color: var(--accent-dark); }
.key-panel-status { font-size: 13.2px; color: var(--text-dim); margin-top: 8px; min-height: 16px; }
.key-panel-status.ok { color: var(--green); }
.key-panel-status.warn { color: var(--red); }

/* --- Menu Hover Tooltip Bubble --- */
.menu-tooltip-bubble {
  position: fixed;
  z-index: 2000;
  max-width: 260px;
  padding: 10px 14px;
  background: #3d2b1f;
  color: #f5f0e8;
  border: 1px solid var(--accent-light);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(61, 43, 31, 0.28);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14.3px;
  line-height: 1.45;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px) scale(0.98);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.menu-tooltip-bubble.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.menu-tooltip-title {
  font-weight: 700;
  font-size: 14.9px;
  color: #e8c468;
  margin-bottom: 3px;
}
.menu-tooltip-desc {
  color: #f5f0e8;
  font-weight: 400;
}
.menu-tooltip-bubble::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #3d2b1f;
  transform: rotate(45deg);
}
.menu-tooltip-bubble[data-placement="bottom"]::before {
  top: -5px;
  left: var(--arrow-left, 24px);
  border-top: 1px solid var(--accent-light);
  border-left: 1px solid var(--accent-light);
}
.menu-tooltip-bubble[data-placement="right"]::before {
  left: -5px;
  top: var(--arrow-top, 16px);
  border-bottom: 1px solid var(--accent-light);
  border-left: 1px solid var(--accent-light);
}
.menu-tooltip-bubble[data-placement="left"]::before {
  right: -5px;
  top: var(--arrow-top, 16px);
  border-top: 1px solid var(--accent-light);
  border-right: 1px solid var(--accent-light);
}
@media print {
  .menu-tooltip-bubble { display: none !important; }
}
