:root {
  --bg: #f7fafb;
  --surface: #ffffff;
  --surface-2: #eef5f6;
  --ink: #15272b;
  --muted: #607176;
  --line: #d8e4e7;
  --teal: #0f6b68;
  --teal-2: #0a4f54;
  --coral: #d8674a;
  --blue: #3a6ea5;
  --green: #477d63;
  --shadow: 0 18px 48px rgba(22, 49, 54, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  min-height: 100%;
  margin: 0;
}

button,
input {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  min-height: 84px;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(145deg, var(--teal), var(--blue));
  box-shadow: 0 12px 26px rgba(15, 107, 104, 0.24);
}

.brand h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
}

.brand p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.status-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.status-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(15, 107, 104, 0.18);
  border-radius: 8px;
  color: var(--teal-2);
  background: #f1f8f8;
  font-size: 12px;
  font-weight: 700;
}

.workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 320px;
  gap: 18px;
  padding: 18px;
  min-height: calc(100vh - 84px);
}

body[data-view="paper"][data-paper-key="final"] .workspace {
  grid-template-columns: 220px minmax(0, 1fr);
}

body[data-view="paper"][data-paper-key="final"] .notes-pane {
  display: none;
}

.stage-rail,
.main-pane,
.notes-pane {
  min-width: 0;
}

.stage-rail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 12px;
  align-self: start;
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 122px);
  overflow: auto;
}

.rail-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 4px 10px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.rail-heading strong {
  color: var(--teal);
  font-size: 12px;
}

.stage-nav {
  display: grid;
  gap: 5px;
}

.stage-button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.stage-button:hover {
  background: #f4f8f9;
}

.stage-button.active {
  border-color: rgba(15, 107, 104, 0.24);
  background: #eaf5f5;
}

.stage-index {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.stage-button.active .stage-index {
  background: var(--teal);
  color: #fff;
}

.stage-name {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.stage-file {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.3;
}

.main-pane {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.mode-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 6px;
  width: fit-content;
  box-shadow: 0 12px 28px rgba(22, 49, 54, 0.08);
}

.mode-tab {
  border: 0;
  border-radius: 6px;
  padding: 8px 15px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.mode-tab.active {
  color: #fff;
  background: var(--teal);
}

.stage-panel,
.paper-panel,
.evidence-panel,
.review-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  padding: 28px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(15, 107, 104, 0.08), rgba(58, 110, 165, 0.06)),
    var(--surface);
}

.section-label {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-band h2,
.panel-header h2,
.notes-card h2,
.paper-section h2,
.review-block h2,
.paper-toolbar h2,
.document-heading h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.18;
  font-weight: 850;
}

.hero-band p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.artifact-stack {
  display: grid;
  gap: 10px;
}

.artifact-chip {
  border: 1px solid rgba(15, 107, 104, 0.16);
  border-radius: 8px;
  background: #fff;
  padding: 11px;
}

.artifact-chip span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.artifact-chip strong {
  display: block;
  margin-top: 4px;
  color: var(--teal-2);
  font-size: 14px;
  line-height: 1.3;
}

.stage-content {
  padding: 24px 28px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 34%);
  gap: 24px;
}

.bullet-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullet-list li {
  border-left: 3px solid var(--teal);
  padding: 10px 14px;
  background: #f7fafb;
  border-radius: 0 8px 8px 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.stage-aside {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfc;
  padding: 16px;
}

.stage-aside h3 {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--teal-2);
}

.stage-aside ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.search-box {
  min-width: 260px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #f8fbfc;
  font-size: 14px;
  outline: none;
}

.search-box input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 107, 104, 0.12);
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.evidence-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: #fff;
  display: grid;
  gap: 9px;
}

.evidence-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.evidence-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  border-radius: 6px;
  background: #edf5f7;
  color: var(--teal-2);
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 800;
}

.paper-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.version-count {
  flex: none;
  border: 1px solid rgba(15, 107, 104, 0.2);
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--teal-2);
  background: #f1f8f8;
  font-size: 12px;
  font-weight: 850;
}

.draft-toggle {
  display: inline-flex;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafb;
}

.draft-toggle button {
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.draft-toggle button.active {
  background: var(--teal);
  color: #fff;
}

.document-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #f8fbfc;
}

.document-button {
  min-width: 142px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  display: grid;
  gap: 3px;
  text-align: left;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.document-button:hover {
  border-color: rgba(15, 107, 104, 0.38);
}

.document-button.active {
  border-color: var(--teal);
  background: #eaf5f5;
  box-shadow: inset 0 0 0 1px rgba(15, 107, 104, 0.18);
}

.document-button.review-button.active {
  border-color: var(--coral);
  background: #fff5f1;
  box-shadow: inset 0 0 0 1px rgba(216, 103, 74, 0.18);
}

.document-button span {
  font-size: 13px;
  font-weight: 900;
}

.document-button small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 0;
}

.journal-layout {
  grid-template-columns: minmax(0, 1fr);
  padding: 22px;
  background: #f4f8f9;
}

.journal-layout .document-sidebar {
  display: none;
}

.document-viewer {
  min-width: 0;
  padding: 24px 30px 30px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.journal-document {
  width: min(100%, 980px);
  margin: 0 auto;
  border: 1px solid #d4e0e3;
  box-shadow: 0 18px 46px rgba(22, 49, 54, 0.12);
  padding: 0;
  background:
    linear-gradient(90deg, rgba(15, 107, 104, 0.05), rgba(255, 255, 255, 0) 140px),
    #fff;
}

.document-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.status-badge {
  flex: none;
  border-radius: 8px;
  padding: 7px 10px;
  color: #fff;
  background: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.review-document .status-badge {
  background: var(--coral);
}

.document-meta {
  display: grid;
  gap: 9px;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--line);
}

.document-meta > span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.manuscript-content {
  max-width: 820px;
  padding-top: 4px;
}

.journal-body {
  max-width: 900px;
  padding: 0 42px 42px;
}

.journal-paper-header {
  padding: 34px 42px 18px;
  border-bottom: 1px solid #cbd7da;
  background: #fbfdfd;
}

.journal-meta-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  color: var(--teal-2);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.article-title {
  margin: 18px 0 0;
  max-width: 860px;
  color: #10272b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 35px;
  line-height: 1.16;
  font-weight: 700;
}

.article-authors {
  margin: 16px 0 0;
  color: var(--blue);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 800;
}

.affiliations {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #43585d;
  font-size: 13px;
  line-height: 1.5;
}

.correspondence {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.article-history {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.article-history span {
  border: 1px solid #d7e3e6;
  border-radius: 6px;
  padding: 5px 7px;
  color: #4b6268;
  background: #fff;
  font-size: 11px;
  font-weight: 750;
}

.key-points,
.structured-abstract,
.journal-table-wrap,
.references-section,
.declarations-section {
  border-bottom: 1px solid #d7e3e6;
  padding: 22px 0;
}

.key-points {
  border-top: 0;
}

.key-points h3,
.structured-abstract h3,
.journal-table-wrap h3,
.references-section h3,
.declarations-section h3 {
  margin: 0 0 12px;
  color: var(--teal-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.3;
}

.key-points ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.key-points li {
  color: #253b40;
  font-size: 14px;
  line-height: 1.6;
}

.structured-abstract dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.structured-abstract dl div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
}

.structured-abstract dt {
  color: #10272b;
  font-size: 13px;
  font-weight: 900;
}

.structured-abstract dd {
  margin: 0;
  color: #253b40;
  font-size: 14.5px;
  line-height: 1.72;
}

.keywords {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.manuscript-section {
  padding-top: 22px;
}

.manuscript-section h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
}

.manuscript-section p {
  margin: 0;
  color: #263b40;
  font-size: 15px;
  line-height: 1.78;
}

.manuscript-section p + p {
  margin-top: 12px;
}

.journal-body .manuscript-section h3 {
  color: #10272b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.journal-body .manuscript-section p {
  color: #1f3439;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.82;
}

.citation {
  color: var(--blue);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.7em;
  line-height: 0;
  vertical-align: super;
  font-weight: 800;
}

.journal-table-scroll {
  overflow-x: auto;
  border: 1px solid #d4e0e3;
  border-radius: 8px;
}

.journal-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
}

.journal-table th,
.journal-table td {
  border-bottom: 1px solid #e1eaec;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.45;
}

.journal-table th {
  color: #10272b;
  background: #eef5f6;
  font-weight: 850;
}

.journal-table tr:last-child td {
  border-bottom: 0;
}

.references-list {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 9px;
  color: #263b40;
}

.references-list li {
  padding-left: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13.5px;
  line-height: 1.52;
}

.declarations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.declarations-grid div {
  border: 1px solid #dbe6e8;
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfd;
}

.declarations-grid strong {
  display: block;
  color: #10272b;
  font-size: 12px;
  text-transform: uppercase;
}

.declarations-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.document-sidebar {
  border: 0;
  border-radius: 0;
  border-left: 0;
  background: #f9fbfc;
}

.timeline-list {
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}

.timeline-list li {
  border-left: 3px solid var(--line);
  padding: 6px 0 7px 10px;
}

.timeline-list li.active {
  border-left-color: var(--teal);
  background: #eef8f8;
}

.timeline-list strong,
.timeline-list span {
  display: block;
}

.timeline-list strong {
  color: var(--ink);
  font-size: 13px;
}

.timeline-list span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.empty-state {
  padding: 24px;
  color: var(--muted);
}

.paper-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  padding: 22px;
}

.paper-section {
  display: grid;
  gap: 16px;
}

.abstract-box,
.claim-box,
.trend-box,
.review-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.abstract-box p,
.claim-box p,
.trend-box p,
.review-block p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.claim-box h3,
.trend-box h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--teal-2);
}

.citation-grid {
  display: grid;
  gap: 8px;
}

.citation-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.citation-row:last-child {
  border-bottom: 0;
}

.citation-row strong {
  color: var(--teal);
  font-size: 13px;
}

.citation-row span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.trend-chart {
  height: 160px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding-top: 16px;
}

.trend-bar {
  flex: 1;
  min-width: 18px;
  display: grid;
  gap: 6px;
  align-content: end;
  text-align: center;
}

.trend-bar i {
  display: block;
  min-height: 4px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--coral), var(--teal));
}

.trend-bar span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.review-body {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.review-stack {
  display: grid;
  gap: 14px;
}

.review-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.review-block-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

.open-document-button {
  border: 1px solid rgba(15, 107, 104, 0.24);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--teal-2);
  background: #f1f8f8;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.review-document-sections {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.review-document-sections .manuscript-section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.review-document-sections .manuscript-section h3 {
  font-size: 15px;
  color: var(--teal-2);
}

.review-document-sections .manuscript-section p {
  font-size: 14px;
  line-height: 1.62;
}

.review-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.review-list li {
  border-left: 3px solid var(--coral);
  border-radius: 0 8px 8px 0;
  background: #fff7f4;
  padding: 10px 12px;
  color: #614239;
  font-size: 14px;
  line-height: 1.5;
}

.revision-grid {
  display: grid;
  gap: 10px;
}

.revision-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfd;
}

.revision-item span {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.revision-item strong {
  color: var(--green);
  font-size: 12px;
}

.notes-pane {
  display: grid;
  gap: 14px;
  align-content: start;
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 122px);
  overflow: auto;
}

.notes-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(22, 49, 54, 0.08);
  padding: 16px;
}

.artifact-path {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.speaker-notes {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.metric-card {
  display: grid;
  gap: 10px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.metric-row strong {
  color: var(--teal);
  font-size: 17px;
}

.hidden {
  display: none;
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .notes-pane {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .workspace {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  body[data-view="paper"][data-paper-key="final"] .workspace {
    grid-template-columns: 1fr;
  }

  .stage-rail,
  .notes-pane {
    position: static;
    max-height: none;
  }

  .stage-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-band,
  .stage-content,
  .paper-body,
  .document-layout,
  .review-columns,
  .notes-pane {
    grid-template-columns: 1fr;
  }

  .mode-tabs {
    width: 100%;
  }

  .mode-tab {
    flex: 1;
    padding: 9px 8px;
  }

  .panel-header,
  .paper-toolbar,
  .document-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .document-viewer {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .journal-body,
  .journal-paper-header {
    padding-left: 24px;
    padding-right: 24px;
  }

  .article-title {
    font-size: 29px;
  }

  .structured-abstract dl div,
  .declarations-grid {
    grid-template-columns: 1fr;
  }

  .search-box {
    min-width: 0;
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand h1 {
    font-size: 19px;
  }

  .status-strip {
    justify-content: flex-start;
  }

  .stage-nav {
    grid-template-columns: 1fr;
  }

  .hero-band,
  .stage-content,
  .paper-body,
  .review-body,
  .document-viewer {
    padding: 18px;
  }

  .citation-row,
  .revision-item {
    grid-template-columns: 1fr;
  }

  .document-button {
    min-width: 100%;
  }

  .journal-body,
  .journal-paper-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .article-title {
    font-size: 24px;
  }

  .journal-body .manuscript-section p {
    font-size: 15.5px;
  }
}
