@font-face {
  font-family: "HS4G Mobile Serif";
  src: url("./assets/fonts/hs4g-mobile-serif.woff2?v=20260509-212741") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "HS4G Mobile Serif";
  src: url("./assets/fonts/hs4g-mobile-serif.woff2?v=20260509-212741") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  --ink: #0d0908;
  --ink-2: #1a1411;
  --paper: #f4ead7;
  --paper-2: #e4d7bf;
  --paper-3: #c8b896;
  --red: #b5162a;
  --red-2: #7d111f;
  --gold: #c99635;
  --green: #0b8f7d;
  --blue: #315ea8;
  --white: #fff8ec;
  --muted: #7b6e5a;
  --line: rgba(244, 234, 215, 0.16);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  --font-serif: "HS4G Mobile Serif", "Songti SC", "STSongti-SC-Regular", "STSong", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(181, 22, 42, 0.28), transparent 32%),
    radial-gradient(circle at 90% 30%, rgba(11, 143, 125, 0.18), transparent 34%),
    linear-gradient(135deg, #090706 0%, #17100d 52%, #0b0a08 100%);
  color: var(--paper);
  font-family: var(--font-serif);
  font-synthesis-weight: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(201, 150, 53, 0.18);
}

button,
textarea,
input {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
}

.canon-rail {
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(13, 9, 8, 0.94), rgba(18, 11, 10, 0.86)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 248, 236, 0.025) 0,
      rgba(255, 248, 236, 0.025) 1px,
      transparent 1px,
      transparent 11px
    );
  padding: 22px 18px;
  overflow-y: auto;
}

.brand-block {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(201, 150, 53, 0.36);
  background: #0d0908;
  box-shadow: 0 0 0 1px rgba(181, 22, 42, 0.12);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-block h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: 0;
}

.brand-block p,
.current-path,
.section-kicker,
.reader-meta,
.selected-verse-label {
  margin: 0;
  color: var(--paper-3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
}

.rail-section + .rail-section {
  margin-top: 22px;
}

.section-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
}

.book-nav,
.chapter-nav {
  display: grid;
  gap: 8px;
}

.book-item,
.chapter-item {
  width: 100%;
  border: 1px solid rgba(244, 234, 215, 0.13);
  background: rgba(244, 234, 215, 0.035);
  color: var(--paper);
  text-align: left;
  padding: 11px 12px;
  cursor: pointer;
  border-radius: 6px;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.book-item:hover,
.chapter-item:hover,
.book-item.active,
.chapter-item.active {
  background: rgba(181, 22, 42, 0.22);
  border-color: rgba(201, 150, 53, 0.5);
}

.book-item.active,
.chapter-item.active {
  transform: translateX(3px);
}

.book-number {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
}

.book-title,
.chapter-title {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  line-height: 1.3;
}

.book-line {
  display: block;
  margin-top: 5px;
  color: var(--paper-3);
  font-size: 12px;
  line-height: 1.35;
}

.workbench {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  min-height: 150px;
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.signal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.34;
}

.topbar-copy,
.topbar-actions {
  position: relative;
  z-index: 1;
}

.topbar h2 {
  max-width: 980px;
  margin: 8px 0 0;
  color: var(--white);
  font-size: clamp(30px, 4.2vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.view-switch {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(244, 234, 215, 0.16);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 8px;
}

.view-toggle {
  border: 0;
  background: transparent;
  color: var(--paper-3);
  border-radius: 5px;
  padding: 7px 10px;
  cursor: pointer;
}

.view-toggle.active {
  background: rgba(201, 150, 53, 0.18);
  color: var(--white);
}

.view-logout {
  border: 1px solid rgba(244, 234, 215, 0.18);
  background: rgba(181, 22, 42, 0.16);
  color: var(--paper-2);
  border-radius: 5px;
  padding: 7px 9px;
  cursor: pointer;
}

.command,
.mode {
  border: 1px solid rgba(244, 234, 215, 0.24);
  background: rgba(244, 234, 215, 0.06);
  color: var(--paper);
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}

.command:hover,
.mode:hover,
.mode.active {
  background: rgba(11, 143, 125, 0.22);
  border-color: rgba(11, 143, 125, 0.55);
}

.command.danger:hover {
  background: rgba(181, 22, 42, 0.3);
  border-color: rgba(181, 22, 42, 0.6);
}

.command.subtle.active,
.command.subtle:hover {
  background: rgba(201, 150, 53, 0.18);
  border-color: rgba(201, 150, 53, 0.5);
  color: #fff2b8;
}

.command.full {
  width: 100%;
}

.mode-strip {
  display: flex;
  gap: 8px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.mode {
  white-space: nowrap;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 0;
  min-height: 0;
  flex: 1;
}

.app-shell.public-view {
  grid-template-columns: 292px minmax(0, 1fr);
  background:
    linear-gradient(180deg, rgba(19, 9, 9, 0.96), rgba(8, 7, 6, 0.98)),
    repeating-linear-gradient(
      90deg,
      rgba(244, 234, 215, 0.018) 0,
      rgba(244, 234, 215, 0.018) 1px,
      transparent 1px,
      transparent 36px
    );
}

.public-view .side-pane,
.public-view .mode-strip,
.public-view #organizeSaveBtn,
.public-view #saveDraftBtn,
.public-view #exportMdBtn,
.public-view #resetDraftBtn {
  display: none;
}

.public-view .canon-rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  border-right: 1px solid rgba(201, 150, 53, 0.22);
  background:
    linear-gradient(180deg, rgba(15, 9, 8, 0.98), rgba(8, 8, 7, 0.94)),
    repeating-linear-gradient(
      0deg,
      rgba(244, 234, 215, 0.022) 0,
      rgba(244, 234, 215, 0.022) 1px,
      transparent 1px,
      transparent 18px
    );
  padding: 26px 18px 22px;
}

.public-view .brand-block {
  grid-template-columns: 50px 1fr;
  margin-bottom: 30px;
}

.public-view .brand-mark {
  width: 50px;
  height: 50px;
  border-color: rgba(201, 150, 53, 0.42);
  background: #0d0908;
  box-shadow:
    0 0 0 1px rgba(181, 22, 42, 0.18),
    0 14px 40px rgba(0, 0, 0, 0.22);
}

.public-view .brand-block h1 {
  color: var(--white);
  font-size: 18px;
}

.public-view .brand-block p {
  margin-top: 4px;
  color: rgba(200, 184, 150, 0.82);
}

.public-view .section-kicker {
  color: rgba(201, 150, 53, 0.84);
}

.public-view .book-nav,
.public-view .chapter-nav {
  gap: 7px;
}

.public-view .chapter-nav {
  max-height: 46vh;
  overflow-y: auto;
  padding-right: 4px;
}

.public-view .book-item,
.public-view .chapter-item {
  border-color: rgba(244, 234, 215, 0.1);
  background: rgba(244, 234, 215, 0.028);
  border-radius: 4px;
  padding: 10px 11px;
}

.public-view .book-item:hover,
.public-view .chapter-item:hover,
.public-view .book-item.active,
.public-view .chapter-item.active {
  background:
    linear-gradient(90deg, rgba(181, 22, 42, 0.2), rgba(201, 150, 53, 0.08)),
    rgba(244, 234, 215, 0.035);
  border-color: rgba(201, 150, 53, 0.46);
}

.public-view .book-item.active,
.public-view .chapter-item.active {
  transform: none;
  box-shadow: inset 3px 0 0 rgba(201, 150, 53, 0.72);
}

.public-view .book-title,
.public-view .chapter-title {
  font-size: 14px;
}

.public-view .book-line {
  color: rgba(200, 184, 150, 0.7);
}

.public-view .topbar {
  min-height: min(56vh, 560px);
  padding: 46px clamp(28px, 6vw, 92px) 42px;
  align-items: end;
  border-bottom: 1px solid rgba(201, 150, 53, 0.24);
  background:
    linear-gradient(180deg, rgba(6, 5, 5, 0.2), rgba(9, 7, 6, 0.62) 58%, rgba(12, 8, 8, 0.96)),
    linear-gradient(115deg, rgba(181, 22, 42, 0.26), rgba(12, 8, 8, 0.08) 42%, rgba(11, 143, 125, 0.12)),
    repeating-linear-gradient(
      90deg,
      rgba(244, 234, 215, 0.018) 0,
      rgba(244, 234, 215, 0.018) 1px,
      transparent 1px,
      transparent 34px
    );
}

.public-view .topbar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 150, 53, 0.76), rgba(181, 22, 42, 0.34), transparent);
}

.public-view .signal-canvas {
  opacity: 0.86;
}

.public-view .current-path {
  color: rgba(201, 150, 53, 0.86);
  font-size: 12px;
}

.public-view .topbar h2 {
  max-width: 980px;
  color: #fff8ec;
  font-size: clamp(54px, 8.4vw, 126px);
  line-height: 0.9;
  word-break: keep-all;
  overflow-wrap: normal;
  text-shadow:
    0 18px 60px rgba(0, 0, 0, 0.65),
    0 0 28px rgba(181, 22, 42, 0.18);
  text-wrap: balance;
}

.public-view .topbar-actions {
  align-self: start;
}

.public-view .view-switch,
.public-view #shareImageBtn {
  border-color: rgba(244, 234, 215, 0.18);
  background: rgba(8, 6, 5, 0.42);
  backdrop-filter: blur(10px);
}

.public-view .main-grid {
  grid-template-columns: minmax(0, 1fr);
}

.public-view .reader-pane {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 50px clamp(24px, 5vw, 78px) 92px;
}

.public-view .reader-content {
  max-width: 900px;
  margin: 0 auto;
}

.public-view .reader-meta span {
  background: rgba(0, 0, 0, 0.26);
}

.public-reader-tools {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(201, 150, 53, 0.22);
  background:
    linear-gradient(135deg, rgba(181, 22, 42, 0.1), rgba(11, 143, 125, 0.045)),
    rgba(244, 234, 215, 0.035);
  border-radius: 6px;
  padding: 15px 16px;
  margin-bottom: 34px;
}

.public-reader-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.public-reader-tools strong {
  display: block;
  color: var(--white);
  font-size: 16px;
  line-height: 1.35;
}

.public-reader-tools span {
  display: block;
  margin-top: 4px;
  color: var(--paper-3);
  font-size: 13px;
}

.public-reader-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.reader-pane {
  padding: 28px 32px 42px;
  min-width: 0;
}

.reader-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.reader-meta span {
  border: 1px solid rgba(244, 234, 215, 0.18);
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.16);
  border-radius: 5px;
}

.reader-content {
  max-width: 980px;
}

.verse-list {
  display: grid;
  gap: 10px;
}

.verse {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  border-left: 3px solid transparent;
  padding: 8px 0 8px 12px;
  cursor: pointer;
  border-radius: 0 7px 7px 0;
}

.verse:hover,
.verse.active {
  border-left-color: var(--red);
  background: linear-gradient(90deg, rgba(181, 22, 42, 0.12), transparent);
}

.verse.favorite {
  border-left-color: var(--gold);
  background:
    linear-gradient(90deg, rgba(201, 150, 53, 0.18), rgba(181, 22, 42, 0.08), transparent),
    rgba(244, 234, 215, 0.025);
}

.verse.favorite .verse-text {
  color: #fff2b8;
}

.verse.rhythm-large .verse-text {
  font-size: clamp(32px, 3.35vw, 54px);
  line-height: 1.2;
}

.verse.rhythm-lift .verse-text {
  font-size: clamp(24px, 2.55vw, 40px);
  line-height: 1.42;
}

.verse.rhythm-medium .verse-text {
  font-size: clamp(22px, 2.25vw, 35px);
  line-height: 1.52;
}

.verse.rhythm-quiet .verse-text {
  color: var(--paper-2);
  font-size: clamp(19px, 1.9vw, 30px);
}

.verse-no {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.verse-text {
  color: var(--white);
  font-size: clamp(20px, 2.2vw, 34px);
  line-height: 1.58;
  letter-spacing: 0;
}

.verse.is-short .verse-text {
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.24;
}

.verse.rhythm-favorite .verse-text {
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.28;
}

.verse-mark {
  align-self: center;
  border: 1px solid rgba(201, 150, 53, 0.26);
  background: rgba(0, 0, 0, 0.14);
  color: var(--paper-3);
  border-radius: 999px;
  padding: 6px 9px;
  cursor: pointer;
  font-size: 12px;
}

.verse-mark:hover,
.verse.favorite .verse-mark {
  background: rgba(201, 150, 53, 0.18);
  border-color: rgba(201, 150, 53, 0.55);
  color: #fff2b8;
}

.public-view .verse-list {
  gap: 18px;
}

.public-view .verse {
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  border-left-width: 1px;
  border-left-color: rgba(201, 150, 53, 0.16);
  border-bottom: 1px solid rgba(244, 234, 215, 0.08);
  border-radius: 0;
  padding: 18px 0 20px 18px;
  background: transparent;
}

.public-view .verse:hover,
.public-view .verse.active {
  border-left-color: rgba(201, 150, 53, 0.78);
  background:
    linear-gradient(90deg, rgba(201, 150, 53, 0.08), rgba(181, 22, 42, 0.04), transparent),
    rgba(244, 234, 215, 0.018);
}

.public-view .verse.favorite {
  border-left-color: rgba(255, 211, 110, 0.95);
  background:
    linear-gradient(90deg, rgba(201, 150, 53, 0.16), rgba(181, 22, 42, 0.09), transparent),
    rgba(244, 234, 215, 0.025);
}

.public-view .verse-no {
  padding-top: 7px;
  color: rgba(201, 150, 53, 0.9);
}

.public-view .verse-text {
  max-width: 780px;
  text-wrap: pretty;
}

.public-view .verse-mark {
  margin-top: 4px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.18);
}

.editor-area,
.collab-output,
.annotation-input,
.lineedit-textarea {
  width: 100%;
  border: 1px solid rgba(244, 234, 215, 0.22);
  background: rgba(0, 0, 0, 0.24);
  color: var(--paper);
  border-radius: 6px;
  padding: 14px;
  resize: vertical;
  outline: none;
}

.editor-area {
  min-height: 62vh;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.8;
  font-size: 15px;
}

.evidence-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  color: var(--paper);
}

.evidence-table th,
.evidence-table td {
  border-bottom: 1px solid rgba(244, 234, 215, 0.16);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.evidence-table th {
  color: var(--gold);
  font-size: 13px;
}

.law-block,
.collab-box,
.empty-state {
  border: 1px solid rgba(244, 234, 215, 0.16);
  background: rgba(244, 234, 215, 0.045);
  padding: 18px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.law-block pre,
.collab-output {
  white-space: pre-wrap;
}

.atlas-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  border: 1px solid rgba(244, 234, 215, 0.16);
  background: rgba(244, 234, 215, 0.045);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
}

.atlas-head h3 {
  margin: 0;
  color: var(--white);
  font-size: 22px;
}

.atlas-head p {
  margin: 7px 0 0;
  color: var(--paper-3);
  font-size: 14px;
  line-height: 1.45;
}

.atlas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.atlas-card {
  border: 1px solid rgba(244, 234, 215, 0.16);
  background: rgba(244, 234, 215, 0.04);
  border-radius: 8px;
  padding: 15px;
}

.atlas-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.atlas-card-head strong {
  color: var(--white);
  font-size: 17px;
  font-weight: 500;
}

.atlas-card-head span {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.atlas-card p {
  color: var(--paper-2);
  font-size: 14px;
  line-height: 1.55;
  margin: 10px 0 12px;
}

.atlas-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.atlas-links button {
  border: 1px solid rgba(244, 234, 215, 0.16);
  background: rgba(0, 0, 0, 0.18);
  color: var(--paper-3);
  border-radius: 999px;
  padding: 5px 8px;
  cursor: pointer;
  font-size: 12px;
}

.atlas-links button:hover {
  color: var(--white);
  border-color: rgba(201, 150, 53, 0.55);
}

.judgment-hero,
.judgment-section {
  border: 1px solid rgba(244, 234, 215, 0.16);
  background:
    linear-gradient(135deg, rgba(181, 22, 42, 0.12), rgba(11, 143, 125, 0.06)),
    rgba(244, 234, 215, 0.04);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
}

.judgment-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.judgment-hero h3 {
  margin: 6px 0 0;
  color: var(--white);
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.judgment-hero p,
.judgment-oracle {
  color: var(--paper-2);
  font-size: 15px;
  line-height: 1.72;
}

.judgment-hero p {
  max-width: 760px;
  margin: 12px 0 0;
}

.judgment-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.judgment-metric,
.judgment-layer,
.judgment-law {
  border: 1px solid rgba(244, 234, 215, 0.15);
  background: rgba(244, 234, 215, 0.045);
  border-radius: 7px;
  padding: 12px;
}

.judgment-metric.warn {
  border-color: rgba(201, 150, 53, 0.48);
}

.judgment-metric.hot {
  border-color: rgba(181, 22, 42, 0.62);
  background: rgba(181, 22, 42, 0.11);
}

.judgment-metric span,
.judgment-layer span {
  display: block;
  color: var(--paper-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.35;
}

.judgment-metric strong,
.judgment-layer strong {
  display: block;
  margin-top: 6px;
  color: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 22px;
  font-weight: 400;
}

.judgment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.judgment-docket,
.judgment-book-map,
.judgment-formula-grid {
  display: grid;
  gap: 10px;
}

.judgment-docket {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.judgment-docket-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px 12px;
  width: 100%;
  border: 1px solid rgba(244, 234, 215, 0.16);
  background:
    linear-gradient(135deg, rgba(181, 22, 42, 0.09), rgba(0, 0, 0, 0.18)),
    rgba(244, 234, 215, 0.04);
  color: var(--paper);
  border-radius: 7px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.judgment-docket-item:hover {
  border-color: rgba(201, 150, 53, 0.58);
  background: rgba(201, 150, 53, 0.09);
}

.judgment-docket-item > span {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(201, 150, 53, 0.5);
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.judgment-docket-item strong,
.judgment-book-row strong,
.judgment-formula strong {
  color: var(--white);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 500;
}

.judgment-docket-item em,
.judgment-docket-item small {
  color: var(--paper-2);
  font-size: 13px;
  line-height: 1.45;
  font-style: normal;
}

.judgment-docket-item small {
  color: var(--gold);
}

.judgment-book-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(244, 234, 215, 0.14);
  background: rgba(244, 234, 215, 0.04);
  border-radius: 7px;
  padding: 12px;
}

.judgment-book-row span {
  display: block;
  margin-top: 4px;
  color: var(--paper-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.35;
}

.judgment-book-row meter {
  width: 100%;
  height: 12px;
  appearance: none;
}

.judgment-book-row meter::-webkit-meter-bar {
  border: 1px solid rgba(244, 234, 215, 0.18);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
}

.judgment-book-row meter::-webkit-meter-optimum-value {
  background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
  border-radius: 999px;
}

.judgment-formula-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.judgment-formula {
  border: 1px solid rgba(244, 234, 215, 0.15);
  background: rgba(244, 234, 215, 0.04);
  border-radius: 7px;
  padding: 12px;
}

.judgment-formula.warn {
  border-color: rgba(201, 150, 53, 0.48);
}

.judgment-formula.hot {
  border-color: rgba(181, 22, 42, 0.62);
  background: rgba(181, 22, 42, 0.1);
}

.judgment-formula span {
  display: block;
  margin: 7px 0;
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
}

.judgment-formula p,
.judgment-tail {
  margin: 0;
  color: var(--paper-3);
  font-size: 13px;
  line-height: 1.45;
}

.judgment-tail {
  margin-top: 12px;
}

.judgment-risk {
  display: grid;
  gap: 7px;
  width: 100%;
  min-height: 112px;
  border: 1px solid rgba(244, 234, 215, 0.15);
  background: rgba(0, 0, 0, 0.18);
  color: var(--paper);
  border-radius: 7px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.judgment-risk:hover {
  border-color: rgba(11, 143, 125, 0.55);
  background: rgba(11, 143, 125, 0.09);
}

.judgment-risk.warn {
  border-color: rgba(201, 150, 53, 0.42);
}

.judgment-risk.hot {
  border-color: rgba(181, 22, 42, 0.62);
}

.judgment-risk strong {
  color: var(--white);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 500;
}

.judgment-risk span {
  color: var(--paper-2);
  font-size: 13px;
  line-height: 1.45;
}

.judgment-risk em {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-style: normal;
}

.judgment-layer-list,
.judgment-law-list {
  display: grid;
  gap: 10px;
}

.judgment-law {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.judgment-law span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(201, 150, 53, 0.5);
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.judgment-law p {
  margin: 0;
  color: var(--paper-2);
  font-size: 14px;
  line-height: 1.55;
}

.side-pane {
  border-left: 1px solid var(--line);
  background: rgba(13, 9, 8, 0.58);
  padding: 22px 18px;
  overflow-y: auto;
}

.panel {
  border-bottom: 1px solid rgba(244, 234, 215, 0.14);
  padding: 0 0 20px;
  margin-bottom: 20px;
}

.panel-title {
  color: var(--gold);
  font-size: 15px;
  margin-bottom: 12px;
}

.role-map {
  display: grid;
  gap: 12px;
}

.role-map-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: start;
}

.role-map-head p {
  margin: 6px 0 0;
  color: var(--paper-3);
  font-size: 13px;
  line-height: 1.45;
}

.role-view-switch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.role-view {
  border: 1px solid rgba(244, 234, 215, 0.2);
  background: rgba(244, 234, 215, 0.05);
  color: var(--paper);
  border-radius: 6px;
  padding: 7px 10px;
  cursor: pointer;
}

.role-view.active,
.role-view:hover {
  background: rgba(11, 143, 125, 0.22);
  border-color: rgba(11, 143, 125, 0.55);
}

.role-map-super {
  color: var(--white);
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 12px;
  border: 1px solid rgba(244, 234, 215, 0.14);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 6px;
}

.role-map-groups {
  display: grid;
  gap: 10px;
}

.role-map-group {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(244, 234, 215, 0.14);
  background: rgba(244, 234, 215, 0.04);
  border-radius: 6px;
}

.role-map-group strong {
  color: var(--gold);
  font-size: 14px;
}

.role-map-group span {
  color: var(--paper);
  font-size: 13px;
  line-height: 1.45;
}

.role-map-group em {
  color: var(--paper-3);
  font-style: normal;
  font-size: 12px;
  line-height: 1.4;
}

.dual-readout {
  display: grid;
  gap: 10px;
}

.dual-readout div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(244, 234, 215, 0.14);
  background: rgba(244, 234, 215, 0.04);
  border-radius: 6px;
}

.dual-readout strong {
  color: var(--gold);
  font-size: 14px;
}

.dual-readout span {
  color: var(--paper-2);
  font-size: 13px;
  line-height: 1.45;
}

.guardrail-item,
.scan-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
  color: var(--paper-2);
  font-size: 14px;
  line-height: 1.45;
}

.growth-map {
  display: grid;
  gap: 12px;
}

.growth-meter {
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(244, 234, 215, 0.18);
  background: rgba(0, 0, 0, 0.24);
  border-radius: 999px;
}

.growth-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
}

.growth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.growth-grid div,
.growth-book {
  border: 1px solid rgba(244, 234, 215, 0.14);
  background: rgba(244, 234, 215, 0.04);
  border-radius: 6px;
  padding: 9px;
}

.growth-grid strong {
  display: block;
  color: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px;
  line-height: 1;
}

.growth-grid span,
.growth-book span {
  display: block;
  margin-top: 5px;
  color: var(--paper-3);
  font-size: 11px;
  line-height: 1.25;
}

.growth-books {
  display: grid;
  gap: 6px;
  max-height: 190px;
  overflow: auto;
}

.growth-book {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.growth-book span {
  margin-top: 0;
  color: var(--paper-2);
}

.growth-book strong {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 400;
}

.version-list {
  display: grid;
  gap: 8px;
}

.version-current,
.version-item {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(244, 234, 215, 0.14);
  background: rgba(244, 234, 215, 0.04);
  border-radius: 6px;
  padding: 10px;
}

.version-current strong,
.version-item strong {
  color: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 400;
}

.version-current span,
.version-item span,
.version-item em {
  color: var(--paper-3);
  font-style: normal;
  font-size: 12px;
  line-height: 1.4;
}

.version-item strong {
  color: var(--gold);
}

.share-panel-body {
  display: grid;
  gap: 10px;
}

.share-summary {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(244, 234, 215, 0.14);
  background: rgba(244, 234, 215, 0.04);
  border-radius: 6px;
  padding: 10px;
}

.share-summary strong {
  color: var(--white);
  font-size: 14px;
  line-height: 1.35;
}

.share-summary span,
.share-preview-meta,
.share-link {
  color: var(--paper-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
}

.share-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.share-toggle {
  border: 1px solid rgba(244, 234, 215, 0.2);
  background: rgba(244, 234, 215, 0.05);
  color: var(--paper);
  border-radius: 6px;
  padding: 8px 9px;
  cursor: pointer;
}

.share-toggle.active {
  background: rgba(11, 143, 125, 0.22);
  border-color: rgba(11, 143, 125, 0.55);
}

.share-toggle.disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.share-link {
  max-height: 72px;
  overflow: auto;
  border: 1px solid rgba(244, 234, 215, 0.14);
  border-radius: 6px;
  padding: 9px;
  word-break: break-all;
  background: rgba(0, 0, 0, 0.16);
}

.share-actions {
  display: grid;
  gap: 8px;
}

.share-preview {
  border: 1px solid rgba(244, 234, 215, 0.16);
  background: rgba(0, 0, 0, 0.24);
  border-radius: 8px;
  padding: 8px;
  max-height: 360px;
  overflow: auto;
}

.share-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  background: var(--green);
  border-radius: 999px;
}

.dot.warn {
  background: var(--gold);
}

.dot.hot {
  background: var(--red);
}

.annotation-input {
  min-height: 132px;
  margin: 10px 0;
  line-height: 1.6;
}

.search-input {
  width: 100%;
  border: 1px solid rgba(244, 234, 215, 0.22);
  background: rgba(0, 0, 0, 0.24);
  color: var(--paper);
  border-radius: 6px;
  padding: 10px 11px;
  outline: none;
  margin-bottom: 10px;
}

.search-input::placeholder {
  color: rgba(200, 184, 150, 0.72);
}

.search-results,
.revision-queue {
  display: grid;
  gap: 8px;
}

.search-hit,
.queue-item {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid rgba(244, 234, 215, 0.14);
  background: rgba(244, 234, 215, 0.04);
  color: var(--paper);
  border-radius: 7px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.search-hit:hover,
.queue-item:hover {
  border-color: rgba(11, 143, 125, 0.52);
  background: rgba(11, 143, 125, 0.09);
}

.search-hit span,
.queue-item span,
.empty-mini {
  color: var(--paper-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.35;
}

.search-hit strong,
.queue-item strong {
  color: var(--paper-2);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
}

.choice-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.choice-row label {
  border: 1px solid rgba(244, 234, 215, 0.18);
  border-radius: 6px;
  padding: 8px 10px;
  background: rgba(244, 234, 215, 0.045);
  cursor: pointer;
  font-size: 14px;
}

.collab-output {
  min-height: 280px;
  font-size: 14px;
  line-height: 1.65;
}

.lineedit-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(244, 234, 215, 0.16);
  background: rgba(244, 234, 215, 0.045);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.lineedit-toolbar strong {
  color: var(--white);
  font-size: 18px;
}

.lineedit-toolbar p {
  margin: 6px 0 0;
  color: var(--paper-3);
  font-size: 13px;
}

.lineedit-list {
  display: grid;
  gap: 14px;
}

.lineedit-card {
  border: 1px solid rgba(244, 234, 215, 0.18);
  background:
    linear-gradient(135deg, rgba(181, 22, 42, 0.08), rgba(0, 0, 0, 0.18)),
    rgba(244, 234, 215, 0.035);
  border-radius: 8px;
  padding: 14px;
}

.lineedit-card.inserted {
  border-color: rgba(11, 143, 125, 0.46);
}

.lineedit-card.favorite {
  border-color: rgba(201, 150, 53, 0.5);
  background: rgba(201, 150, 53, 0.055);
}

.lineedit-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.verse-chip,
.flag-chip,
.mark-chip,
.flag-row button {
  border: 1px solid rgba(244, 234, 215, 0.2);
  background: rgba(0, 0, 0, 0.2);
  color: var(--gold);
  border-radius: 999px;
  padding: 5px 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.mark-chip.active {
  color: #fff2b8;
  border-color: rgba(201, 150, 53, 0.62);
  background: rgba(201, 150, 53, 0.16);
}

.flag-chip.hot,
.flag-row button[data-flag="hot"] {
  color: #ffd5d5;
  border-color: rgba(181, 22, 42, 0.62);
}

.flag-chip.weak,
.flag-row button[data-flag="weak"] {
  color: var(--gold);
}

.flag-chip.cut,
.flag-row button[data-flag="cut"] {
  color: var(--paper-3);
  opacity: 0.8;
}

.lineedit-textarea {
  min-height: 92px;
  font-size: 22px;
  line-height: 1.55;
  color: var(--white);
  margin-bottom: 10px;
}

.lineedit-actions,
.flag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.flag-row button {
  cursor: pointer;
}

.lineedit-note {
  margin-top: 10px;
  color: var(--paper-3);
  font-size: 13px;
  line-height: 1.45;
}

.source-pool {
  display: grid;
  gap: 8px;
}

.source-card {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid rgba(244, 234, 215, 0.16);
  background: rgba(244, 234, 215, 0.045);
  color: var(--paper);
  border-radius: 7px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.source-card:hover {
  border-color: rgba(201, 150, 53, 0.52);
  background: rgba(201, 150, 53, 0.09);
}

.source-card span,
.source-card em {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-style: normal;
}

.source-card strong {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  padding: 12px 14px;
  background: rgba(13, 9, 8, 0.94);
  border: 1px solid rgba(201, 150, 53, 0.58);
  color: var(--paper);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.admin-login {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(181, 22, 42, 0.22), transparent 36%),
    rgba(6, 5, 4, 0.76);
  backdrop-filter: blur(12px);
}

.admin-login[hidden] {
  display: none;
}

.admin-login-card {
  width: min(100%, 520px);
  border: 1px solid rgba(244, 234, 215, 0.2);
  background:
    linear-gradient(180deg, rgba(26, 20, 17, 0.96), rgba(12, 8, 7, 0.96)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 248, 236, 0.025) 0,
      rgba(255, 248, 236, 0.025) 1px,
      transparent 1px,
      transparent 12px
    );
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 28px;
}

.admin-login-card h3 {
  margin: 6px 0 12px;
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.admin-login-card p {
  margin: 0 0 18px;
  color: var(--paper-3);
  font-size: 14px;
  line-height: 1.7;
}

.admin-password-label {
  display: block;
  margin: 0 0 8px;
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.admin-password-input {
  width: 100%;
  border: 1px solid rgba(244, 234, 215, 0.22);
  background: rgba(0, 0, 0, 0.24);
  color: var(--white);
  border-radius: 6px;
  padding: 12px 13px;
  outline: none;
}

.admin-password-input:focus {
  border-color: rgba(201, 150, 53, 0.65);
  box-shadow: 0 0 0 3px rgba(201, 150, 53, 0.1);
}

.admin-login-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell.public-view {
    grid-template-columns: 1fr;
  }

  .canon-rail {
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .public-view .canon-rail {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(201, 150, 53, 0.22);
  }

  .public-view .book-nav,
  .public-view .chapter-nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(170px, 240px);
    grid-template-columns: none;
    overflow-x: auto;
    max-height: none;
    padding-bottom: 4px;
  }

  .book-nav,
  .chapter-nav {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .public-view .book-nav,
  .public-view .chapter-nav {
    grid-template-columns: none;
  }

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

  .side-pane {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (min-width: 760px) and (max-width: 1080px) {
  .app-shell.public-view {
    grid-template-columns: 268px minmax(0, 1fr);
  }

  .public-view .canon-rail {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    border-right: 1px solid rgba(201, 150, 53, 0.22);
    border-bottom: 0;
    padding: 22px 15px 18px;
  }

  .public-view .book-nav,
  .public-view .chapter-nav {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: none;
    overflow-x: visible;
  }

  .public-view .chapter-nav {
    max-height: 44vh;
    overflow-y: auto;
  }

  .public-view .topbar {
    min-height: min(48vh, 460px);
  }
}

@media (max-width: 700px) {
  .topbar {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .public-view .topbar {
    min-height: 330px;
    padding: 28px 16px 24px;
    gap: 18px;
    overflow: hidden;
  }

  .public-view .topbar h2 {
    font-size: 56px;
    line-height: 0.96;
    max-width: 100%;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .public-view .canon-rail {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 10px 12px 12px;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(15, 9, 8, 0.98), rgba(8, 8, 7, 0.96)),
      repeating-linear-gradient(
        0deg,
        rgba(244, 234, 215, 0.018) 0,
        rgba(244, 234, 215, 0.018) 1px,
        transparent 1px,
        transparent 16px
      );
  }

  .public-view .brand-block {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 9px;
  }

  .public-view .brand-mark {
    width: 36px;
    height: 36px;
  }

  .public-view .brand-block h1 {
    font-size: 16px;
    line-height: 1.1;
  }

  .public-view .brand-block p {
    display: none;
  }

  .public-view .rail-section + .rail-section {
    margin-top: 7px;
  }

  .public-view .section-kicker {
    display: none;
  }

  .public-view .book-nav,
  .public-view .chapter-nav {
    display: flex;
    gap: 6px;
    scrollbar-width: none;
  }

  .public-view .book-nav::-webkit-scrollbar,
  .public-view .chapter-nav::-webkit-scrollbar {
    display: none;
  }

  .public-view .book-item,
  .public-view .chapter-item {
    flex: 0 0 auto;
    width: auto;
    min-height: 0;
    padding: 7px 10px;
    border-radius: 6px;
    white-space: nowrap;
  }

  .public-view .chapter-item {
    min-height: 0;
  }

  .public-view .book-title,
  .public-view .chapter-title {
    display: inline;
    margin: 0 0 0 6px;
    font-size: 13px;
    line-height: 1.1;
  }

  .public-view .book-line {
    display: none;
  }

  .public-view .book-number {
    font-size: 10px;
  }

  .reader-pane,
  .mode-strip {
    padding-left: 18px;
    padding-right: 18px;
  }

  .public-view .reader-pane {
    padding: 24px 13px 76px;
  }

  .public-view .reader-meta {
    gap: 7px;
    margin-bottom: 14px;
  }

  .public-view .reader-meta span {
    padding: 5px 7px;
    font-size: 11px;
  }

  .public-reader-tools {
    padding: 13px;
    margin-bottom: 22px;
  }

  .public-reader-head {
    gap: 12px;
  }

  .public-reader-tools strong {
    font-size: 15px;
  }

  .public-reader-tools span {
    font-size: 12px;
    line-height: 1.45;
  }

  .public-reader-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .public-reader-actions .command {
    padding: 8px 9px;
    min-height: 40px;
    min-width: 0;
    font-size: 13px;
    text-align: center;
  }

  .public-view .topbar-actions {
    justify-content: flex-start;
    gap: 8px;
  }

  .public-view .view-switch {
    max-width: 100%;
  }

  .public-view .view-toggle,
  .public-view #shareImageBtn {
    padding: 8px 10px;
    font-size: 13px;
  }

  .verse {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
  }

  .public-view .verse {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0 16px 11px;
  }

  .public-view .verse-no {
    padding-top: 4px;
    font-size: 12px;
  }

  .public-view .verse-text,
  .verse.rhythm-quiet .verse-text,
  .verse.rhythm-medium .verse-text {
    font-size: 25px;
    line-height: 1.48;
  }

  .public-view .verse.rhythm-lift .verse-text,
  .public-view .verse.rhythm-large .verse-text,
  .public-view .verse.is-short .verse-text,
  .public-view .verse.rhythm-favorite .verse-text {
    font-size: 35px;
    line-height: 1.24;
  }

  .public-view .verse-mark {
    padding: 5px 8px;
    font-size: 11px;
  }

  .verse-mark {
    grid-column: 2;
    justify-self: start;
  }

  .public-reader-actions {
    justify-content: flex-start;
  }

  .public-reader-head {
    align-items: stretch;
    flex-direction: column;
  }

  .judgment-hero {
    flex-direction: column;
  }

  .judgment-book-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .public-view .topbar {
    min-height: 300px;
    padding: 24px 13px 22px;
  }

  .public-view .topbar h2 {
    font-size: 48px;
  }

  .public-view .book-nav,
  .public-view .chapter-nav {
    grid-auto-columns: minmax(124px, 58vw);
  }

  .public-view .verse {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
    padding-left: 9px;
  }

  .public-view .verse-text,
  .verse.rhythm-quiet .verse-text,
  .verse.rhythm-medium .verse-text {
    font-size: 23px;
  }

  .public-view .verse.rhythm-lift .verse-text,
  .public-view .verse.rhythm-large .verse-text,
  .public-view .verse.is-short .verse-text,
  .public-view .verse.rhythm-favorite .verse-text {
    font-size: 31px;
  }
}
