/* Source-reader extension for editorial-report.html. The existing report view remains the base UI. */
.kind-badge--gyoyeol {
  background: rgba(245, 183, 0, 0.22);
  color: #8a5a00;
}

.source-reader-toggle {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--gray-400);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}
.view-switch-button[hidden],
.source-reader-toggle[hidden] { display: none !important; }
.source-reader-toggle:hover { background: var(--gray-50); color: var(--press-black); }
.source-reader-toggle:focus-visible { outline: 2px solid var(--tiger-orange); outline-offset: 1px; }
.source-reader-toggle:active { background: var(--gray-100); }
.source-reader-toggle:disabled { opacity: 0.38; cursor: not-allowed; }
.item.is-dismissed .item-actions { justify-content: space-between; }
.item.is-dismissed .item-actions-left { display: flex; }

.review-mobile-block {
  min-height: calc(100vh - 64px);
  padding: 4rem 2rem;
  display: none;
  place-content: center;
  justify-items: center;
  gap: 1.2rem;
  text-align: center;
  background: var(--white);
}
.review-mobile-block__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(249, 104, 21, 0.1);
  color: var(--tiger-orange);
  font-size: 3rem;
}
.review-mobile-block h1 { margin: 0; color: var(--press-black); font-size: 2.2rem; line-height: 1.35; }
.review-mobile-block p { max-width: 38rem; margin: 0 0 0.8rem; color: var(--gray-500); font-size: 1.35rem; line-height: 1.65; }

.review-completion-summary {
  min-height: calc(100vh - 64px);
  padding: 5rem 2rem;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.1rem;
  background: var(--gray-50);
  text-align: center;
}
.review-completion-summary[hidden] { display: none; }
.review-completion-summary__mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  font-size: 3.2rem;
}
.review-completion-summary__eyebrow { margin: 0; color: #15803d; font-size: 1.2rem; font-weight: 750; }
.review-completion-summary h2 { margin: 0; color: var(--press-black); font-size: 2.6rem; line-height: 1.35; }
.review-completion-summary__time,
.review-completion-summary__note { margin: 0; color: var(--gray-500); font-size: 1.25rem; line-height: 1.6; }
.review-completion-counts {
  width: min(52rem, 100%);
  margin: 1.2rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  background: var(--white);
  overflow: hidden;
}
.review-completion-counts div { padding: 1.4rem 1rem; border-right: 1px solid var(--gray-200); }
.review-completion-counts div:last-child { border-right: 0; }
.review-completion-counts dt { color: var(--gray-500); font-size: 1.1rem; }
.review-completion-counts dd { margin: 0.45rem 0 0; color: var(--press-black); font: 750 2rem/1 var(--f-mono); }
.review-completion-summary__actions { margin-top: 1.3rem; display: flex; align-items: center; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }
.review-complete-button { flex: 0 0 auto; min-width: 9rem; }
body.is-review-complete-view .doc-meta,
body.is-review-complete-view .filter-bar,
body.is-review-complete-view .items,
body.is-review-complete-view .reader-workspace,
body.is-review-complete-view .report-foot { display: none !important; }

.view-switch-button {
  height: 36px;
  padding: 0 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid rgba(249, 104, 21, 0.55);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--press-black);
  font: 650 1.2rem/1 var(--f-body);
  white-space: nowrap;
  cursor: pointer;
}
.view-switch-button i { color: var(--tiger-orange); }
.view-switch-button:hover {
  border-color: rgba(249, 104, 21, 0.85);
  box-shadow: inset 0 0 0 1px rgba(249, 104, 21, 0.24);
}

.document-action-divider {
  flex: 0 0 1px;
  align-self: center;
  width: 1px;
  height: 20px;
  background: var(--gray-200);
}
.view-switch-button:focus-visible,
.reader-tool:focus-visible,
.reader-card-disclosure:focus-visible,
.reader-filter-stat:focus-visible,
.reader-filter-chip:focus-visible {
  outline: 2px solid var(--tiger-orange);
  outline-offset: 2px;
}

.reader-workspace {
  --reader-suggestion-width: 440px;
  display: none;
  min-width: 0;
}
body.is-reader-open { overflow: hidden; }
body.is-reader-open .doc-meta,
body.is-reader-open .filter-bar,
body.is-reader-open > .items,
body.is-reader-open .main > .items,
body.is-reader-open .report-foot { display: none; }
body.is-reader-open .reader-workspace {
  width: 100%;
  height: calc(100vh - 64px);
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--reader-suggestion-width);
  overflow: hidden;
  background: var(--white);
}

.reader-pane {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #525659;
}
.reader-head {
  min-height: 64px;
  padding: 0.9rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
}
.reader-head-main {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 1.4rem;
  overflow: hidden;
}
.reader-document-title {
  flex: 0 1 22rem;
  min-width: 8rem;
  max-width: 22rem;
  margin: 0;
  overflow: hidden;
  color: var(--press-black);
  font-size: 1.8rem;
  font-weight: 750;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reader-document-stats {
  flex: 0 0 auto;
  margin: 0;
  padding-left: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  border-left: 1px solid var(--gray-200);
  white-space: nowrap;
}
.reader-document-stat { display: flex; align-items: baseline; gap: 0.35rem; }
.reader-document-stat dt {
  color: var(--gray-500);
  font: 500 1.05rem/1 var(--f-mono);
  letter-spacing: 0.04em;
}
.reader-document-stat dd {
  margin: 0;
  color: var(--press-black);
  font-size: 1.4rem;
  font-weight: 650;
}
.reader-head-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 0.8rem; }

.reader-toolbar {
  min-height: 52px;
  padding: 0.7rem 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #202124;
  background: #323639;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
  color: #f1f3f4;
}
.reader-pdf-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #f1f3f4;
  font-size: 1.15rem;
  font-weight: 600;
}
.reader-pdf-name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-toolbar-group { display: flex; align-items: center; gap: 0.45rem; }
.reader-tool {
  min-width: 44px;
  height: 44px;
  padding: 0 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #e8eaed;
  font: 600 1.15rem/1 var(--f-body);
  cursor: pointer;
}
.reader-tool:hover { border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.12); color: #fff; }
.reader-tool:disabled { opacity: 0.35; cursor: not-allowed; }
.reader-zoom-value,
.reader-page-total { color: #dadce0; font: 500 1.1rem/1 var(--f-mono); font-variant-numeric: tabular-nums; }

.reader-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
  padding: 3.2rem 4.8rem max(8rem, var(--reader-safe-bottom, 30vh));
  background: #525659;
  scrollbar-color: #8a8d91 #3e4245;
  scrollbar-width: thin;
}
.reader-scroll::-webkit-scrollbar { width: 12px; height: 12px; }
.reader-scroll::-webkit-scrollbar-track { background: #3e4245; }
.reader-scroll::-webkit-scrollbar-thumb { border: 3px solid #3e4245; border-radius: 8px; background: #8a8d91; }
.reader-document {
  width: var(--reader-document-width, min(100%, 680px));
  max-width: none;
  min-width: 0;
  margin: 0 auto;
  transform-origin: top center;
}
.reader-page {
  position: relative;
  width: 100%;
  aspect-ratio: 504.566 / 711.495;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #c6c8ca;
  border-radius: 1px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.28), 0 12px 32px rgba(0, 0, 0, 0.2);
  user-select: none;
}
.reader-page-image { width: 100%; height: 100%; display: block; object-fit: contain; pointer-events: none; }

.source-mark {
  position: absolute;
  left: var(--mark-left);
  top: var(--mark-top);
  z-index: 2;
  width: var(--mark-width);
  height: var(--mark-height);
  min-width: 4px;
  min-height: 6px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  mix-blend-mode: multiply;
}
.source-mark--gyojeong { background: rgba(255, 128, 88, 0.48); }
.source-mark--gyoyeol { background: rgba(255, 226, 74, 0.56); }
.source-mark--yunmun { background: rgba(116, 203, 122, 0.42); }
.source-mark.is-current { z-index: 4; outline: 2px solid var(--tiger-orange); outline-offset: 2px; }
.source-mark.is-current.source-mark--primary::after {
  position: absolute;
  top: -2.5rem;
  left: 0;
  min-width: 2.2rem;
  height: 1.8rem;
  padding: 0 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-300);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: none;
  color: var(--gray-500);
  content: attr(data-label);
  font: 600 1rem/1 var(--f-mono);
  mix-blend-mode: normal;
  pointer-events: none;
  transition: border-color 0.14s ease, color 0.14s ease;
  white-space: nowrap;
}
.source-mark.is-current.source-mark--primary:hover::after,
.source-mark.is-current.source-mark--primary:focus-visible::after {
  border-color: var(--gray-400);
  color: var(--gray-700);
}
.source-mark.is-excluded,
.source-mark.is-filtered-out { display: none; }

.reader-page-floating-control {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  z-index: 7;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-pill);
  background: rgba(32, 33, 36, 0.94);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.34);
  color: #f1f3f4;
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
  width: auto;
  max-width: calc(100% - 8rem);
  flex-wrap: nowrap;
  white-space: nowrap;
}
.reader-page-input {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid #70757a;
  border-radius: 2px;
  background: #202124;
  text-align: center;
  color: #fff;
  font: 500 1.15rem/1 var(--f-mono);
}
.reader-suggestion-float {
  position: absolute;
  top: calc(50% + 48px);
  z-index: 6;
  width: 42px;
  height: 50px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-pill);
  background: rgba(32, 33, 36, 0.9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.34);
  color: #f1f3f4;
  font-size: 2.4rem;
  cursor: pointer;
  transform: translateY(-50%);
}
.reader-suggestion-float--prev { left: 1.2rem; }
.reader-suggestion-float--next { right: 1.2rem; }
.reader-suggestion-float:hover { background: #202124; }
.reader-suggestion-float:disabled { opacity: 0.3; cursor: not-allowed; }
.reader-status {
  position: absolute;
  left: 50%;
  bottom: 7rem;
  z-index: 8;
  max-width: calc(100% - 3rem);
  padding: 0.7rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-pill);
  background: rgba(32, 33, 36, 0.94);
  color: #dadce0;
  font-size: 1.15rem;
  white-space: nowrap;
  transform: translateX(-50%);
}
.reader-status[hidden] { display: none; }

.reader-suggestion-pane {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid var(--gray-200);
  background: var(--white);
}
.reader-side-head {
  min-height: 64px;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--gray-200);
}
.reader-side-head h2 { margin: 0; flex: 0 0 auto; font-size: 1.8rem; line-height: 1.25; }
.reader-side-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}
.reader-side-actions .style-analysis,
.reader-side-actions .report-download {
  height: 36px;
  padding: 0 1.3rem;
  font-size: 1.25rem;
}
.reader-filter-panel { flex: 0 0 auto; border-bottom: 1px solid var(--gray-200); background: var(--white); }
.reader-filter-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--gray-200);
}
.reader-filter-stat {
  min-width: 0;
  min-height: 52px;
  padding: 0.75rem 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 0;
  border-right: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-500);
  font: 650 1.05rem/1.1 var(--f-body);
  cursor: pointer;
}
.reader-filter-stat:last-child { border-right: 0; }
.reader-filter-stat:hover { background: var(--gray-50); color: var(--press-black); }
.reader-filter-stat .count {
  color: var(--press-black);
  font: 750 1.4rem/1 var(--f-mono);
}
.reader-filter-stat.is-active {
  background: var(--press-black);
  color: rgba(255, 255, 255, 0.72);
}
.reader-filter-stat.is-active .count { color: var(--white); }
.reader-filter-options { display: block; }
.reader-filter-panel .filter-main-row { padding: 0.8rem 0.9rem; }
/* 페이지 범위 필터 재도입 시 복원: .reader-filter-type-row .page-range-btn { margin-left: auto; } */
.reader-filter-panel .filter-subtype-inline {
  max-width: min(30rem, calc(100vw - 4rem));
}

.reader-suggestion-list {
  flex: 1;
  min-height: 0;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  overflow: auto;
  background: var(--white);
}
.reader-list-item {
  --reader-accent: var(--tiger-orange);
  --reader-accent-soft: rgba(249, 104, 21, 0.34);
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--press-black);
  transition: border-color 0.16s var(--ease-out), box-shadow 0.16s var(--ease-out), background 0.16s var(--ease-out);
}
.reader-list-item[data-category="gyoyeol"] { --reader-accent: #d4a600; --reader-accent-soft: rgba(212, 166, 0, 0.34); }
.reader-list-item[data-category="yunmun"] { --reader-accent: #4f9a57; --reader-accent-soft: rgba(79, 154, 87, 0.34); }
.reader-list-item:hover { border-color: var(--gray-300); background: var(--gray-50); }
.reader-list-item.is-current,
.reader-list-item.is-expanded { border-color: var(--tiger-orange); background: var(--white); box-shadow: inset 0 0 0 1px rgba(249, 104, 21, 0.34); }
.reader-card-disclosure {
  width: 100%;
  min-height: 48px;
  padding: 1rem 1.15rem 0.7rem 1.35rem;
  display: block;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.reader-list-meta { width: 100%; display: flex; align-items: center; gap: 1rem; }
.reader-list-meta .item-meta-left { min-width: 0; display: flex; align-items: center; gap: 0.8rem; }
.reader-list-state {
  margin-left: auto;
  min-height: 24px;
  padding: 0.25rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--gray-500);
  font: 500 1.1rem/1 var(--f-mono);
  white-space: nowrap;
}
.reader-list-state::before { width: 6px; height: 6px; border-radius: 50%; background: var(--gray-300); content: ''; }
.reader-list-state i { font-size: 1.25rem; }
.reader-card-chevron { flex: 0 0 auto; color: var(--gray-400); font-size: 1.7rem; transition: transform 0.18s var(--ease-out); }
.reader-list-item.is-expanded .reader-card-chevron { transform: rotate(180deg); }
.reader-card-comparison { padding: 0 1.15rem 1.15rem 1.35rem; display: flex; flex-direction: column; gap: 1.2rem; cursor: pointer; }
.reader-card-comparison .passage { margin: 0; padding: 0.9rem 1rem; font-size: 1.45rem; line-height: 1.7; }
.reader-card-comparison .passage-label { margin-bottom: 0.4rem; }
.reader-passage-copy { display: block; }
.reader-list-item:not(.is-expanded) .reader-passage-copy {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.reader-list-item.is-expanded .reader-card-comparison .passage { font-size: 1.6rem; line-height: 1.625; }
.reader-card-detail { padding: 0 1.15rem 1.2rem 1.35rem; }
.reader-card-detail[hidden] { display: none; }
.reader-card-detail .item-reason { margin: 0; padding-top: 0.7rem; font-size: 1.5rem; line-height: 1.6; }
.reader-card-detail .item-reason-label {
  margin-bottom: 0.5rem;
  display: block;
  color: var(--gray-500);
  font: 700 1.1rem/1.2 var(--f-mono);
}
.reader-anchor-state {
  margin: 0 0 0.8rem;
  padding: 0.7rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--r-sm);
  background: var(--gray-50);
  color: var(--gray-500);
  font-size: 1.2rem;
}
.reader-card-detail .item-actions { margin-top: 1.4rem; }
.reader-card-detail .bookmark-toggle { width: 44px; height: 44px; }
.reader-card-detail .item-action-buttons .btn,
#report-view-panel .item-action-buttons .btn { min-width: 8rem; min-height: 44px; }
.reader-card-detail .item-action-buttons .btn--review-choice,
#report-view-panel .item-action-buttons .btn { border: 1px solid var(--gray-300); background: var(--white); color: var(--press-black); }
.reader-card-detail .item-action-buttons .btn--review-choice:hover,
#report-view-panel .item-action-buttons .btn:hover { border-color: var(--press-black); background: var(--gray-50); color: var(--press-black); }
.reader-list-item[data-state="approved"] { border-color: rgba(22, 163, 74, 0.18); }
.reader-list-item[data-state="approved"] .passage--target { background: rgba(22, 163, 74, 0.055); border-color: rgba(22, 163, 74, 0.18); }
.reader-list-item[data-state="approved"] .passage--target .diff { background: rgba(22, 163, 74, 0.14); }
.reader-list-item[data-state="approved"] .reader-list-state { color: #15803d; background: rgba(22, 163, 74, 0.07); border-color: rgba(22, 163, 74, 0.18); }
.reader-list-item[data-state="dismissed"] { border-style: dashed; background: var(--gray-50); }
.reader-list-item[data-state="dismissed"] .reader-list-state { color: var(--gray-500); background: var(--gray-50); }
.reader-list-item[data-state="approved"] .reader-list-state::before,
.reader-list-item[data-state="dismissed"] .reader-list-state::before { display: none; }
.reader-list-item:not(.is-expanded)[data-state="approved"] .passage--source,
.reader-list-item:not(.is-expanded)[data-state="dismissed"] .passage--target { display: none; }
.reader-filter-empty { margin: 0; padding: 3.2rem 1.6rem; color: var(--gray-500); font-size: 1.25rem; text-align: center; }
.reader-filter-empty[hidden] { display: none; }

.reader-panel-resizer {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: 0;
  width: 10px;
  cursor: col-resize;
  touch-action: none;
}
.reader-panel-resizer::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: var(--gray-200);
  content: '';
  transition: width 0.14s var(--ease-out), background 0.14s var(--ease-out);
}
.reader-panel-resizer:hover::after,
.reader-panel-resizer:focus-visible::after,
body.is-reader-panel-resizing .reader-panel-resizer::after { width: 3px; background: var(--tiger-orange); }
body.is-reader-panel-resizing { cursor: col-resize; user-select: none; }

body.is-source-reader-guide-active [data-reader-card-actions] .btn::before,
body.is-source-reader-guide-active [data-reader-card-actions] .btn::after { display: none; }

@media (max-width: 899px) and (min-width: 768px) {
  .reader-workspace { --reader-suggestion-width: 340px; }
  .reader-document-stats { display: none; }
  .reader-scroll { padding: 2.4rem 3.6rem max(7rem, var(--reader-safe-bottom, 30vh)); }
  .reader-side-head { padding: 1rem; }
  .reader-suggestion-list { padding: 0.7rem; }
  .reader-list-item:not(.is-expanded) .reader-passage-copy { -webkit-line-clamp: 1; }
  .reader-suggestion-float { width: 44px; height: 52px; }
  .reader-filter-panel .chip,
  /* 페이지 범위 필터 재도입 시 복원: .reader-filter-panel .page-range-btn, */
  .reader-head-actions .view-switch-button { min-height: 44px; }
  .doc-actions .view-switch-button,
  .filter-toolbar-actions .style-analysis,
  .filter-toolbar-actions .report-download,
  .reader-side-actions .style-analysis,
  .reader-side-actions .report-download { min-height: 44px; }
}

@media (max-width: 1399px) and (min-width: 900px) {
  .reader-document-stats { display: none; }
}

@media (max-width: 899px) and (min-width: 768px) {
  .doc-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-actions {
    justify-self: stretch;
    justify-content: flex-start;
    padding-top: 0;
  }

  .reader-head {
    min-height: 86px;
    flex-direction: column;
    align-items: stretch;
  }

  .reader-head-actions {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
  }

  .reader-side-head { min-height: 86px; }
}

@media (max-width: 767px) {
  .view-switch-button--reader,
  .document-action-divider,
  .source-reader-toggle,
  .sidebar-collapse-control,
  .reader-workspace { display: none !important; }
  .doc-meta,
  .filter-bar,
  .items,
  .report-foot,
  .review-completion-summary { display: none !important; }
  .review-mobile-block { display: grid; }
}

body.is-review-mobile-blocked .doc-meta,
body.is-review-mobile-blocked .filter-bar,
body.is-review-mobile-blocked .items,
body.is-review-mobile-blocked .reader-workspace,
body.is-review-mobile-blocked .report-foot,
body.is-review-mobile-blocked .review-completion-summary { display: none !important; }
body.is-review-mobile-blocked .review-mobile-block { display: grid; }

@media (prefers-reduced-motion: reduce) {
  .reader-list-item,
  .reader-card-chevron,
  .app,
  .app .sidebar { transition: none; }
}
