/* Pearl AI Hub — PDF Reader (builds on style.css) */

.reader-layout {
  display: flex;
  height: 100vh;
}

/* ── Left: document ── */
.reader-doc {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.reader-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.doc-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-label);
}
.page-nav input {
  width: 3.2rem;
  padding: 0.3rem 0.35rem;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-label);
  font-size: 0.8rem;
}
.page-nav button {
  font-size: 1rem;
  line-height: 1;
  padding: 0.3rem 0.6rem;
}
.page-nav button:disabled {
  opacity: 0.4;
  cursor: default;
}

.reader-stage {
  flex: 1;
  overflow: auto;
  padding: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.reader-stage.dragging .dropzone {
  border-color: var(--accent);
  background: var(--warning-tint);
}
.dropzone {
  margin: auto;
  width: min(520px, 100%);
  padding: 3rem 1.5rem;
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  background: var(--surface);
}
.dropzone h2 {
  font-family: var(--font-headline);
  color: var(--text);
  margin: 0.75rem 0 0.25rem;
  font-size: 1.3rem;
}
.dropzone .hint {
  font-size: 0.78rem;
  margin-top: 0.9rem;
}
.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.upload-status {
  min-height: 1.2em;
  margin-top: 0.75rem;
  font-size: 0.8rem;
}
.upload-status.error {
  color: var(--error);
}

.page-wrap {
  position: relative;
  width: min(900px, 100%);
  flex-shrink: 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
  line-height: 0;
}
.page-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.page-wrap.loading img {
  opacity: 0.45;
}
.word-layer {
  position: absolute;
  inset: 0;
}
.word-layer .w {
  position: absolute;
  border-radius: 3px;
  cursor: pointer;
  mix-blend-mode: multiply;
}
.word-layer .w:hover {
  background: rgba(0, 45, 91, 0.12);
}
.word-layer .w.in-sentence {
  background: rgba(239, 134, 51, 0.1);
}

/* Flowing underline under the words being spoken */
.ul-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ul-layer .ul {
  position: absolute;
  height: 3px;
  margin-top: 1px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(239, 134, 51, 0.45);
}

/* ── Right: side panel ── */
.reader-side {
  width: 400px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--border);
  min-height: 0;
}
.side-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.9rem 1rem 0.6rem;
}
.side-head h1 {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  line-height: 1.2;
}
.side-head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.voice-line {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 1rem;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.mode-switch button {
  padding: 0.45rem;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.mode-switch button.active {
  background: var(--accent);
  color: #fff;
}

.side-controls {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
}
.reader-model-control {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.5rem;
}
.voice-model-control {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.voice-model-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.voice-model-desc.busy {
  color: var(--warning);
}
.voice-model-desc.error {
  color: var(--error);
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.45rem;
}

/* Collapsed side panel: the document gets the full width. */
.reader-layout.side-collapsed .reader-side {
  display: none;
}

.tutor-model {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.control-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-label);
}
.talker-name {
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-controls .switch-row {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--text);
  cursor: pointer;
}
.switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 34px;
  height: 20px;
  flex-shrink: 0;
  margin: 0;
  border-radius: var(--radius-full);
  background: var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}
.switch:checked {
  background: var(--blue);
}
.switch:checked::after {
  transform: translateX(14px);
}
.switch:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.reader-model-control button {
  min-height: 34px;
  padding: 0.4rem 0.65rem;
  font-size: 0.75rem;
}
.side-controls label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-label);
  min-width: 0;
}
.side-controls select {
  width: 100%;
  min-width: 0;
  padding: 0.4rem 0.45rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.8rem;
}

.side-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.8rem 1rem 1rem;
  gap: 0.6rem;
}
.transport {
  display: flex;
  gap: 0.4rem;
}
.transport .play-btn {
  flex: 1;
  padding: 0.55rem;
  font-size: 0.9rem;
}
.transport .btn-accent:disabled {
  cursor: default;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text);
  cursor: pointer;
}
.check-grid {
  display: flex;
  gap: 1rem;
}
/* Preparing ahead: cleaning up, then recording the voice */
.prep {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.prep-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.prep-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}
.prep-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.4s ease;
}
.prep.voicing .prep-fill {
  background: var(--primary);
}
.prep.ready .prep-fill {
  background: var(--success);
}
.prep.error .prep-text {
  color: var(--error);
}
.status-line {
  font-size: 0.75rem;
  color: var(--text-muted);
  min-height: 1.2em;
}
.status-line.error {
  color: var(--error);
}
.text-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-family: var(--font-label);
}
.source-badge {
  text-transform: none;
  letter-spacing: 0;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--primary-tint);
  color: var(--primary);
}
.page-text {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.75;
}
.page-text .hint,
.learn-messages .hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.page-text .s {
  cursor: pointer;
  border-radius: 3px;
}
.page-text .s.mute {
  color: var(--text-muted);
}
.page-text .s.active {
  background: rgba(239, 134, 51, 0.18);
  box-shadow: 0 0 0 2px rgba(239, 134, 51, 0.18);
}
.page-text .tw {
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom / 0 2px;
  padding-bottom: 1px;
}
.page-text .tw.said {
  background-size: 100% 2px;
}
.page-text .tw.current {
  background-size: var(--p, 0%) 2px;
  color: var(--accent);
}

/* Learn */
.talk-card {
  --level: 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s;
}
.talk-card[data-state="listening"] {
  border-color: var(--error);
}
.talk-card[data-state="speaking"],
.talk-card[data-state="thinking"],
.talk-card[data-state="transcribing"] {
  border-color: var(--accent);
}
.talk-card[data-state="deep"] {
  border-color: var(--blue);
}
.talk-orb {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.talk-orb:active {
  transform: scale(0.96);
}
.talk-orb:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.orb-icon {
  position: relative;
}
/* A ring that grows with the student's voice. */
.orb-level {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 calc(var(--level) * 14px) rgba(231, 76, 60, 0.28);
  transition: box-shadow 0.08s linear;
}
.talk-card[data-state="listening"] .talk-orb {
  background: var(--error);
}
.talk-card[data-state="thinking"] .talk-orb,
.talk-card[data-state="transcribing"] .talk-orb {
  animation: orb-breathe 1.2s ease-in-out infinite;
}
.talk-card[data-state="deep"] .talk-orb {
  background: var(--blue);
  animation: orb-breathe 1.6s ease-in-out infinite;
}
.talk-card[data-state="speaking"] .orb-level {
  animation: orb-speak 1.1s ease-out infinite;
}
.talk-card[data-state="error"] .talk-orb {
  background: var(--text-muted);
}
.talk-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.talk-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.talk-state {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.talk-route,
.route-tag {
  font-size: 0.68rem;
  font-family: var(--font-label);
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--warning-tint);
  color: var(--accent);
}
.talk-route.deep,
.route-tag.deep {
  background: rgba(9, 132, 227, 0.12);
  color: var(--blue);
}
.route-tag {
  display: inline-block;
  margin-bottom: 0.35rem;
}
.talk-caption {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.talk-card[data-state="speaking"] .talk-caption,
.talk-card[data-state="thinking"] .talk-caption {
  color: var(--text);
}
.talk-end {
  align-self: flex-start;
}
@keyframes orb-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.92);
    opacity: 0.8;
  }
}
@keyframes orb-speak {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 134, 51, 0.45);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(239, 134, 51, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .talk-orb,
  .orb-level {
    animation: none !important;
    transition: none;
  }
}
.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.quick-row .quick:disabled {
  opacity: 0.5;
  cursor: default;
}
.learn-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.learn-messages .message {
  max-width: 92%;
  font-size: 0.85rem;
  padding: 0.6rem 0.8rem;
}
.learn-messages .note {
  align-self: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-label);
}
.learn-input {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
}
.learn-input textarea {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  line-height: 1.4;
  resize: none;
  max-height: 110px;
}
.learn-input textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.learn-input .btn-accent {
  height: 38px;
}
.models-dialog {
  width: min(560px, calc(100vw - 2rem));
  max-height: min(82vh, 760px);
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
.models-dialog::backdrop {
  background: rgba(4, 12, 24, 0.68);
  backdrop-filter: blur(3px);
}
.models-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.models-dialog-head h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-headline);
  font-size: 1.15rem;
}
.models-dialog-head p,
.model-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}
.models-list {
  max-height: 32vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.model-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
.model-item strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.85rem;
}
.model-item .btn-secondary {
  flex-shrink: 0;
  padding: 0.45rem 0.7rem;
}
.add-model-form {
  display: grid;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.add-model-form label {
  display: grid;
  gap: 0.3rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.add-model-form input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: var(--bg);
  font: inherit;
  font-size: 0.85rem;
}
.add-model-form .status-line {
  margin: 0;
}
/* Learn-only models, at the top of the Learn panel */
.learn-models {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.learn-models .switch-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  body {
    overflow: auto;
    height: auto;
  }
  .reader-layout {
    flex-direction: column;
    height: auto;
  }
  .reader-doc {
    height: 60vh;
    height: 60dvh;
  }
  .reader-side {
    width: 100%;
    height: auto;
    min-height: 70vh;
    border-left: none;
    border-top: 1px solid var(--border);
  }
}
@media (max-width: 600px) {
  .reader-toolbar {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
  }
  .doc-name {
    flex: 1 1 100%;
    order: 3;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .side-controls {
    padding: 0.7rem 0.75rem;
  }
  .transport button {
    min-height: 44px;
  }
}

/* Side text shaped like the page */
.page-text .blk {
  margin: 0 0 0.7rem;
}
.page-text .blk:last-child {
  margin-bottom: 0;
}
.page-text .blk-heading {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  margin-top: 0.3rem;
}
.page-text .blk-list {
  position: relative;
  padding-left: 1.1rem;
}
.page-text .blk-list::before {
  content: "•";
  position: absolute;
  left: 0.2rem;
  color: var(--accent);
}
.page-text .blk-caption {
  font-style: italic;
  font-size: 0.82rem;
}
.page-text .blk-skip {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-muted);
  opacity: 0.6;
  border-left: 2px solid var(--border);
  padding-left: 0.5rem;
  max-height: 4.6em;
  overflow: hidden;
}
.page-text .blk-skip::before {
  content: "Not read aloud · ";
  font-weight: 600;
}
.page-text .tw.skipw {
  color: var(--text-muted);
  opacity: 0.55;
  text-decoration: line-through;
  text-decoration-color: var(--border);
}

/* Pronunciations */
.terms-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-size: 0.8rem;
}
.terms-box summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}
.terms-box .hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0.35rem 0;
}
.terms-count {
  font-weight: 400;
  color: var(--text-muted);
}
.terms-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 210px;
  overflow-y: auto;
}
.term-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.term-name {
  font-family: var(--mono);
  font-weight: 600;
  min-width: 5.5rem;
}
.term-row.unsure .term-name::after {
  content: " ?";
  color: var(--warning);
}
.term-row select,
.term-row input {
  padding: 0.2rem 0.3rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.75rem;
}
.term-row input {
  width: 7rem;
}
.term-spoken {
  flex: 1;
  min-width: 4rem;
  color: var(--text-muted);
  font-size: 0.72rem;
}
.term-play {
  padding: 0.15rem 0.45rem;
  font-size: 0.7rem;
}
.term-tag {
  font-size: 0.62rem;
  padding: 0.05rem 0.4rem;
  border-radius: var(--radius-full);
  background: var(--primary-tint);
  color: var(--primary);
}
.term-tag.tag-you {
  background: var(--success-tint);
  color: var(--success);
}
.term-tag.tag-ai {
  background: var(--warning-tint);
  color: var(--warning);
}
.terms-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
}

/* Smart reading */
.smart-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.4rem;
  max-height: 200px;
  overflow-y: auto;
}
.smart-row {
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.smart-row strong {
  color: var(--success);
  font-weight: 600;
}
.smart-row.failed strong {
  color: var(--error);
}
/* Recorded audio: one row per sentence clip */
.audio-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.audio-row button {
  flex: none;
  width: 26px;
  height: 22px;
  padding: 0;
  font-size: 0.65rem;
  border-radius: 6px;
}
.audio-row .est,
.audio-row .old {
  color: var(--accent);
  font-weight: 600;
}
.page-text .s.desc {
  font-style: italic;
  color: var(--text-muted);
}
.page-text .blk-describe {
  border-left: 2px solid var(--accent);
  padding-left: 0.5rem;
}
.page-text .s.added {
  text-decoration: underline dotted var(--accent);
  text-underline-offset: 4px;
}

/* Change view: what each stage did */
.changes-toggle {
  margin-left: auto;
  margin-right: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  cursor: pointer;
}
.page-text .tw.fixw s {
  color: var(--error);
  opacity: 0.75;
}
.page-text .tw.fixw {
  color: var(--success);
}
.page-text .tw.skipw.why-planner {
  color: #a78bfa;
  text-decoration-color: #a78bfa;
}
.page-text .tw.skipw.why-page-check {
  color: var(--error);
  text-decoration-color: var(--error);
  opacity: 0.8;
}
.page-text .blk.changed {
  border-left: 3px solid var(--success);
  padding-left: 0.55rem;
}
.page-text .blk.chg-moved {
  border-left-color: var(--primary);
}
.page-text .blk.changed::before {
  content: attr(data-tag);
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--success);
}
.page-text .blk.chg-moved::before {
  color: var(--primary);
}
.page-text .said {
  margin: 0.15rem 0 0.35rem;
  padding-left: 0.55rem;
  border-left: 2px solid var(--primary);
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
}
.page-text .said::before {
  content: "said as  ";
  font-weight: 600;
  color: var(--primary);
}
