* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}
body {
  --bg: #f4f7f8;
  --paper: #fff;
  --ink: #263b46;
  --muted: #62757e;
  --line: #dce5e8;
  --accent: #213e54;
  --tint: #e9f0f2;
  --reader-size: 20px;
  --reader-line: 1.9;
  --reader-width: 760px;
  --reader-font: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
body[data-theme="ink"] {
  --bg: #e8e8e5;
  --paper: #f1f1ed;
  --ink: #232523;
  --muted: #60625d;
  --line: #cccec8;
  --accent: #2a302e;
  --tint: #dddfd9;
}
body[data-theme="green"] {
  --bg: #e5eee2;
  --paper: #edf4e9;
  --ink: #2d402d;
  --muted: #596b53;
  --line: #c9d8c3;
  --accent: #34543a;
  --tint: #d8e5d2;
}
body[data-theme="warm"] {
  --bg: #f0e7d4;
  --paper: #f7efde;
  --ink: #493e2e;
  --muted: #7a6a51;
  --line: #dfd0b4;
  --accent: #6d5636;
  --tint: #e9ddc4;
}
body[data-theme="night"] {
  --bg: #18232f;
  --paper: #202e3b;
  --ink: #d4dfe4;
  --muted: #a2b4c1;
  --line: #394b5b;
  --accent: #c1d7e6;
  --tint: #2d4050;
  color-scheme: dark;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
}
button {
  border: 0;
  background: none;
  color: inherit;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 9px;
}
button:hover {
  background: var(--tint);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[contenteditable]:focus-visible {
  outline: 3px solid #698b9e;
  outline-offset: 3px;
}
input,
select,
textarea {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  min-height: 44px;
  max-width: 100%;
}
input:not([type="range"]):not([type="file"]),
textarea {
  width: 100%;
}
textarea {
  resize: vertical;
}
input[type="range"] {
  padding: 0;
  accent-color: var(--accent);
  width: 100%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.4;
}
button.primary {
  background: var(--accent);
  color: var(--paper);
  font-weight: 600;
  white-space: nowrap;
}
button.primary:hover {
  filter: brightness(1.14);
}
.quiet {
  border: 1px solid transparent;
}
.icon-button {
  font-size: 26px;
  padding: 0;
  min-width: 44px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 10px;
  background: var(--paper);
  padding: 12px;
  z-index: 99;
}
.skip:focus {
  top: 8px;
}
[hidden] {
  display: none !important;
}
.site-header {
  max-width: 1240px;
  margin: auto;
  padding: 26px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font-size: 19px;
  font-weight: 600;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 1px;
}
.site-header nav {
  display: flex;
  gap: 6px;
}
.library {
  max-width: 1160px;
  margin: auto;
  padding: 0 24px;
}
.hero {
  min-height: 340px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin: 28px 0 48px;
  overflow: hidden;
}
.eyebrow {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.hero h1 {
  font:
    500 clamp(34px, 4vw, 49px)/1.45 "Songti SC",
    "SimSun",
    serif;
  letter-spacing: 2px;
  margin-bottom: 22px;
}
.hero-description {
  color: var(--muted);
  line-height: 1.95;
  margin-bottom: 20px;
}
.continue-button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 13px;
  max-width: 95%;
  padding: 8px 13px;
}
.continue-button span:first-of-type {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 180px;
}
.continue-button span:last-child {
  color: var(--muted);
}
.orbit-art {
  height: 340px;
  position: relative;
  isolation: isolate;
}
.orbit {
  position: absolute;
  left: 50%;
  top: 44%;
  border: 1px solid #a8bcc5;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-28deg);
  width: 370px;
  height: 155px;
}
.orbit-b {
  transform: translate(-50%, -50%) rotate(34deg);
  width: 340px;
  height: 230px;
  border-color: #c9d7dc;
}
.orbit-c {
  transform: translate(-50%, -50%) rotate(-28deg);
  width: 455px;
  height: 228px;
  border-style: dashed;
  border-color: #d3dfe3;
}
.planet {
  width: 167px;
  height: 167px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 28% 25%,
    #e6eff1 1%,
    #adc2cc 40%,
    #668698 74%,
    #36596b 100%
  );
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  box-shadow: inset -13px -7px 25px #385a6b25;
  z-index: -1;
}
.star {
  position: absolute;
  color: #627f8c;
  font-size: 27px;
}
.star-a {
  top: 49px;
  left: 30%;
}
.star-b {
  top: 205px;
  right: 18%;
  font-size: 20px;
}
.orbit-caption {
  position: absolute;
  bottom: 7px;
  text-align: center;
  width: 100%;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 2px;
}
.section-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
  gap: 32px;
}
.section-tab {
  text-align: left;
  border-radius: 0;
  padding: 22px 4px 24px;
  position: relative;
  opacity: 0.72;
}
.section-tab:hover {
  background: transparent;
  opacity: 1;
}
.section-tab.active {
  opacity: 1;
}
.section-tab.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}
.tab-title {
  display: block;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
}
.count {
  display: inline-block;
  border: 1px solid var(--line);
  vertical-align: middle;
  border-radius: 100px;
  padding: 0 8px;
  font: 12px/22px system-ui;
  margin-left: 7px;
  color: var(--muted);
}
.tab-description {
  display: block;
  font-size: 13px;
  min-height: 23px;
}
.tab-access {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}
.shelf-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 20px;
}
.search-wrap {
  position: relative;
  flex: 1;
  max-width: 500px;
  margin-right: auto;
}
.search-wrap > span {
  position: absolute;
  font-size: 28px;
  left: 13px;
  top: 0;
}
.search-wrap input {
  padding-left: 43px;
  background: transparent;
}
.shelf-tools select {
  background: transparent;
  border-color: transparent;
  font-size: 13px;
}
.shelf-status {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 15px;
  min-height: 20px;
}
.shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.book {
  position: relative;
  min-height: 217px;
  padding: 25px 25px 19px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px 12px 12px 3px;
  border-left: 4px solid #8fa9b4;
  display: flex;
  flex-direction: column;
  text-align: left;
  align-items: stretch;
  box-shadow: 0 3px 0 #253f4f04;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.book:hover {
  background: var(--paper);
  transform: translateY(-3px);
  border-color: #819ca9;
}
.book.archive-book {
  border-left-color: #9fac95;
}
.book h3 {
  font:
    600 21px/1.55 "Songti SC",
    "SimSun",
    serif;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.book-author {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.book p {
  font-size: 12px;
  line-height: 1.85;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 24px;
}
.book-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin-top: auto;
}
.empty {
  grid-column: 1/-1;
  padding: 64px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.empty .empty-symbol {
  font:
    42px/1.3 Georgia,
    serif;
  color: #8aa3ad;
  margin-bottom: 15px;
}
.empty h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 10px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 22px;
}
.library-note {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
  margin-top: 55px;
  padding: 24px 0;
}
.site-footer {
  max-width: 1160px;
  margin: 45px auto 0;
  padding: 25px 24px 30px;
  display: flex;
  gap: 15px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 15;
  background: var(--line);
}
.reading-progress > div {
  height: 100%;
  width: 0;
  background: var(--accent);
}
.reader-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.reader-toolbar > span {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 230px;
  color: var(--muted);
  flex: 1;
}
.reader-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  flex-wrap: wrap;
}
.reader-actions button {
  font-size: 13px;
  padding: 8px 11px;
}
.reader-paper {
  max-width: calc(var(--reader-width) + 100px);
  margin: 40px auto 0;
  padding: 55px 50px 0;
  background: var(--paper);
  min-height: 80vh;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}
.article-header {
  padding-bottom: 35px;
  margin-bottom: 35px;
  border-bottom: 1px solid var(--line);
}
.article-header > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.article-header h1 {
  font: 600 clamp(26px, 4vw, 36px)/1.5 var(--reader-font);
  overflow-wrap: anywhere;
  margin-bottom: 20px;
}
.article-header > div {
  font-size: 12px;
  color: var(--muted);
}
.prose {
  font-family: var(--reader-font);
  font-size: var(--reader-size);
  line-height: var(--reader-line);
  overflow-wrap: anywhere;
  word-break: normal;
}
.prose p {
  margin: 0 0 1.15em;
}
.prose div {
  max-width: 100%;
}
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  margin: 1.7em 0 0.8em;
  line-height: 1.55;
}
.prose h1 {
  font-size: 1.6em;
}
.prose h2 {
  font-size: 1.35em;
}
.prose h3 {
  font-size: 1.15em;
}
.prose h4,
.prose h5,
.prose h6 {
  font-size: 1em;
}
.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1em auto;
}
.prose table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 0.9em;
}
.prose td,
.prose th {
  border: 1px solid var(--line);
  padding: 0.45em 0.7em;
  min-width: 3em;
}
.prose blockquote {
  margin: 1.5em 0;
  padding: 0.4em 1.2em;
  border-left: 3px solid var(--muted);
  color: var(--muted);
}
.prose pre {
  overflow-x: auto;
  white-space: pre-wrap;
  background: var(--tint);
  padding: 15px;
}
.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose li {
  margin: 0.3em 0;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}
.article-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 60px 0;
  color: var(--muted);
  font-size: 12px;
}
.article-end > span:before,
.article-end > span:after {
  content: "";
  display: inline-block;
  width: 40px;
  vertical-align: middle;
  border-top: 1px solid var(--line);
  margin: 0 20px;
}
.reader-bottom {
  position: fixed;
  bottom: 16px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding-left: 13px;
  border-radius: 30px;
  opacity: 0.9;
}
.reader-bottom button {
  font-size: 11px;
}
.focus-mode .reader-toolbar,
.focus-mode .reader-bottom {
  display: none;
}
.focus-mode .reader-paper {
  margin-top: 0;
  border: 0;
  background: var(--bg);
}
.focus-exit {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 12px;
  opacity: 0.6;
  z-index: 11;
}
.focus-exit:hover {
  opacity: 1;
}
dialog {
  width: min(650px, calc(100% - 30px));
  max-height: 90dvh;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 15px;
  padding: 28px;
  box-shadow: 0 20px 100px #152c3c30;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #152c3c65;
  backdrop-filter: blur(4px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 23px;
}
.dialog-heading h2 {
  font-size: 21px;
  margin: 4px 0 8px;
}
.dialog-heading .hint {
  margin-bottom: 0;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.side-dialog {
  margin-right: 22px;
  width: min(360px, calc(100% - 30px));
}
.settings-field {
  margin: 24px 0;
}
.settings-field label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}
.settings-field select {
  width: 100%;
}
.field-label {
  font-size: 14px;
  margin-bottom: 12px;
}
.themes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.themes button {
  border: 2px solid transparent;
  font-size: 13px;
  padding: 12px;
}
.themes button[aria-pressed="true"] {
  border-color: #7693a0;
}
.theme-paper {
  background: #f4f7f8;
  color: #263b46;
}
.theme-ink {
  background: #e8e8e5;
  color: #232523;
}
.theme-green {
  background: #e5eee2;
  color: #2d402d;
}
.theme-warm {
  background: #f0e7d4;
  color: #493e2e;
}
.theme-night {
  background: #18232f;
  color: #d4dfe4;
}
.reset-settings {
  margin: 20px 0 5px;
  padding-left: 0;
  font-size: 12px;
}
.toc {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.toc a {
  font-size: 14px;
  text-decoration: none;
  padding: 10px;
  border-radius: 6px;
}
.toc a:hover {
  background: var(--tint);
}
.toc .sub {
  padding-left: 25px;
  color: var(--muted);
}
label {
  display: block;
  font-size: 13px;
  margin-bottom: 16px;
}
label input,
label select,
label textarea {
  display: block;
  margin-top: 7px;
}
.dropzone {
  background: var(--bg);
  border: 1px dashed #9db3bd;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  padding: 25px 15px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
}
.dropzone strong {
  font-size: 17px;
  font-weight: 500;
}
.dropzone > span:last-of-type {
  font-size: 12px;
  color: var(--muted);
}
.dropzone input {
  max-width: 100%;
  width: auto;
  font-size: 12px;
  margin-top: 14px;
  padding: 5px;
  border: 0;
  background: none;
}
.dropzone.dragging {
  outline: 3px solid #9db3bd;
}
.upload-symbol {
  font-size: 32px;
  line-height: 1.4;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-grid select {
  width: 100%;
}
.upload-queue {
  font-size: 12px;
}
.queue-item {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 10px 0;
  overflow-wrap: anywhere;
}
.queue-item > span:last-child {
  text-align: right;
  color: var(--muted);
  flex-shrink: 0;
  max-width: 60%;
}
.queue-item.error > span:last-child,
.error {
  color: #ac3e36;
}
.editor-dialog {
  width: min(960px, calc(100% - 24px));
  padding: 24px;
}
.format-toolbar {
  display: flex;
  flex-wrap: wrap;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px 7px 0 0;
  padding: 5px;
  gap: 2px;
  position: sticky;
  top: -24px;
  z-index: 1;
}
.format-toolbar button {
  font-size: 13px;
  min-width: 40px;
  padding: 7px 10px;
}
.editor-body {
  height: 46dvh;
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 0;
  overflow-y: auto;
  font-size: 18px;
  background: var(--paper);
}
.editor-body:focus {
  outline-offset: -2px;
}
.required {
  font-size: 11px;
  color: var(--muted);
  margin-left: 7px;
}
.small-dialog {
  width: min(420px, calc(100% - 30px));
}
.toast {
  position: fixed;
  z-index: 50;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(600px, 90vw);
  padding: 14px 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  box-shadow: 0 8px 30px #0002;
  font-size: 14px;
}
.admin-view {
  max-width: 1100px;
  padding: 40px 24px;
  margin: auto;
  min-height: 65vh;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}
.page-heading h1 {
  font:
    32px/1.5 "Songti SC",
    "SimSun",
    serif;
}
.button-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.button-row button {
  font-size: 12px;
}
.admin-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 15px;
  margin-bottom: 24px;
}
.admin-tabs button {
  border-radius: 0;
}
.admin-tabs button.active {
  border-bottom: 3px solid var(--accent);
}
.admin-row,
.report-card {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 14px;
}
.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.admin-row h3,
.report-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.admin-row p,
.report-card .meta {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.report-card > p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.report-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 15px 0;
}
.report-text > div {
  background: var(--bg);
  padding: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.report-text strong {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.report-card textarea {
  font-size: 13px;
}
.danger {
  color: #a0443d;
}
.no-script {
  text-align: center;
  padding: 40px;
}
.loading {
  padding: 60px;
  text-align: center;
  color: var(--muted);
}
@media (min-width: 1450px) {
  .hero {
    min-height: 380px;
    margin-top: 40px;
    margin-bottom: 65px;
  }
  .orbit-art {
    height: 370px;
  }
}
@media (max-width: 900px) {
  .shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    grid-template-columns: 1.1fr 1fr;
  }
  .orbit {
    width: 270px;
    height: 125px;
  }
  .orbit-b {
    width: 260px;
    height: 180px;
  }
  .orbit-c {
    width: 320px;
    height: 175px;
  }
  .planet {
    width: 135px;
    height: 135px;
  }
  .reader-toolbar > span {
    display: none;
  }
  .reader-paper {
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    padding: 40px 35px 0;
  }
  .reader-toolbar {
    padding: 8px 12px;
    gap: 0;
  }
  .reader-actions button {
    padding: 8px;
  }
  .tab-title {
    font-size: 20px;
  }
  .site-header {
    padding: 22px 24px;
  }
}
@media (max-width: 600px) {
  .site-header {
    padding: 18px 20px;
  }
  .brand {
    font-size: 16px;
    gap: 8px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .brand small {
    font-size: 9px;
  }
  .site-header nav {
    gap: 0;
  }
  .site-header nav button {
    padding: 8px;
    font-size: 12px;
  }
  .site-header #homeButton {
    display: none;
  }
  .library {
    padding: 0 20px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    margin: 30px 0 28px;
    position: relative;
    overflow: visible;
  }
  .hero-copy {
    z-index: 1;
  }
  .hero h1 {
    font-size: 34px;
    letter-spacing: 1px;
    margin-bottom: 18px;
  }
  .eyebrow {
    font-size: 11px;
    margin-bottom: 18px;
  }
  .hero-description {
    font-size: 12px;
    line-height: 1.85;
  }
  .orbit-art {
    position: absolute;
    right: -8px;
    top: 10px;
    width: 180px;
    height: 225px;
    opacity: 0.36;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
  }
  .orbit {
    width: 175px;
    height: 95px;
  }
  .orbit-b {
    width: 165px;
    height: 130px;
  }
  .orbit-c {
    width: 210px;
    height: 140px;
  }
  .planet {
    width: 85px;
    height: 85px;
  }
  .orbit-caption {
    display: none;
  }
  .star-a {
    font-size: 19px;
    top: 37px;
  }
  .star-b {
    top: 170px;
  }
  .section-tabs {
    gap: 16px;
  }
  .section-tab {
    padding: 16px 0 18px;
  }
  .tab-title {
    font-size: 17px;
    line-height: 1.6;
    min-height: 55px;
    display: flex;
    align-items: center;
    gap: 3px;
  }
  .count {
    font-size: 10px;
    padding: 0 6px;
    margin-left: 3px;
    line-height: 19px;
  }
  .tab-description {
    font-size: 11px;
    min-height: 60px;
    line-height: 1.7;
  }
  .tab-access {
    display: none;
  }
  .shelf-tools {
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 22px;
  }
  .search-wrap {
    flex-basis: 100%;
    max-width: none;
    margin-bottom: 5px;
  }
  .shelf-tools select {
    margin-right: auto;
    padding-left: 0;
  }
  .shelf-tools button {
    font-size: 12px;
    padding: 8px 12px;
  }
  .shelf {
    gap: 12px;
  }
  .book {
    min-height: 205px;
    padding: 17px 15px 15px;
    border-left-width: 3px;
  }
  .book h3 {
    font-size: 18px;
  }
  .book p {
    font-size: 11px;
    -webkit-line-clamp: 3;
    margin-bottom: 17px;
  }
  .book-bottom {
    font-size: 10px;
    flex-direction: column;
    gap: 1px;
  }
  .book-author {
    font-size: 11px;
  }
  .library-note {
    margin-top: 35px;
    flex-direction: column;
    gap: 6px;
  }
  .site-footer {
    margin-top: 10px;
    padding: 20px;
    flex-direction: column;
    gap: 5px;
    font-size: 10px;
  }
  .reader-toolbar {
    flex-wrap: wrap;
    padding: 6px 10px;
  }
  .reader-toolbar > button {
    font-size: 12px;
    padding: 7px;
  }
  .reader-actions {
    gap: 0;
  }
  .reader-actions button {
    font-size: 12px;
    min-height: 40px;
    padding: 7px;
  }
  .reader-actions #settingsButton span {
    display: none;
  }
  .reader-paper {
    padding: 32px 22px 0;
  }
  .article-header {
    margin-bottom: 28px;
    padding-bottom: 26px;
  }
  .article-header h1 {
    font-size: 27px;
  }
  .article-header > div {
    font-size: 11px;
  }
  .reader-bottom {
    bottom: 12px;
    right: 10px;
  }
  .side-dialog {
    margin: auto;
    width: calc(100% - 24px);
  }
  dialog {
    padding: 22px;
    max-height: 92dvh;
  }
  .dialog-heading h2 {
    font-size: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .editor-dialog {
    padding: 16px;
    width: calc(100% - 12px);
    max-height: 96dvh;
  }
  .editor-dialog .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .editor-body {
    padding: 17px;
    font-size: 17px;
    min-height: 210px;
  }
  .format-toolbar {
    top: -16px;
  }
  .format-toolbar button {
    font-size: 12px;
    min-height: 38px;
    padding: 6px 8px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .admin-view {
    padding: 20px;
  }
  .admin-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .report-text {
    grid-template-columns: 1fr;
  }
  .report-card {
    padding: 17px;
  }
  .dialog-actions button {
    font-size: 13px;
    padding: 8px 12px;
  }
  .continue-button {
    font-size: 11px;
  }
  .toast {
    font-size: 13px;
    bottom: 18px;
    max-width: 92vw;
    width: max-content;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
.welcome-intro{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:#08131c;color:#eef5f5;overflow:hidden;touch-action:none;opacity:1;transition:opacity .36s ease}.welcome-intro.closing{opacity:0;pointer-events:none}.welcome-intro video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#08131c}.welcome-shade{position:absolute;inset:0;background:linear-gradient(90deg,#07141dcc 0%,#07141d78 48%,#07141d36 100%),linear-gradient(0deg,#07141dc7 0%,transparent 45%,#07141d59 100%);pointer-events:none}.welcome-copy{position:relative;z-index:1;width:min(620px,calc(100% - 48px));margin:0 auto 0 8vw;text-shadow:0 2px 24px #0008}.welcome-kicker{font-size:12px;letter-spacing:2px;color:#b8d0d2;margin-bottom:20px}.welcome-copy h1{font:500 clamp(34px,5vw,64px)/1.35 "Songti SC","Noto Serif CJK SC","SimSun",serif;letter-spacing:3px;margin:0 0 22px}.welcome-copy>p:not(.welcome-kicker){font-size:13px;color:#d2e0e0;margin-bottom:13px}.welcome-credit{font-size:11px!important;color:#b8cacc!important;letter-spacing:1px;margin-top:-6px;margin-bottom:14px!important}.welcome-progress{height:2px;width:min(310px,100%);background:#e4eff133;overflow:hidden}.welcome-progress span{display:block;height:100%;width:0;background:#d7bb7a;transition:width .2s linear}.welcome-actions{display:flex;gap:8px;margin-top:18px}.welcome-button{border:1px solid #d9e7e788;background:#0b1d29b8;color:#eef5f5;font-size:12px;min-height:38px;padding:7px 14px}.welcome-button:hover{background:#173445d9}.welcome-intro[hidden]{display:none}@media(max-width:600px){.welcome-copy{width:calc(100% - 40px);margin:0 20px}.welcome-copy h1{font-size:36px;letter-spacing:1px}.welcome-shade{background:linear-gradient(90deg,#07141dc9,#07141d59),linear-gradient(0deg,#07141dcc,transparent 60%)}}

/* Display-only indentation; never applied to the editor or stored document. */
#articleBody.auto-first-indent .reading-indent-paragraph { text-indent: 2em; }
.settings-field label.reading-toggle { display: flex; flex-direction: row; align-items: center; gap: 10px; cursor: pointer; }
.reading-toggle input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
