.reader-page {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  background: #020a13;
  color: #dcecf2;
}

.abyss-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.abyss-background canvas,
.abyss-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.abyss-background canvas {
  display: block;
}

.abyss-vignette {
  background:
    radial-gradient(circle at 76% 20%, transparent 0 16%, rgba(0, 8, 15, 0.14) 50%, rgba(0, 6, 12, 0.62) 100%),
    linear-gradient(180deg, rgba(0, 7, 14, 0.08), rgba(0, 7, 14, 0.28));
}

.reader-page main {
  position: relative;
  z-index: 1;
}

.reader-page [hidden] {
  display: none !important;
}

.reader-page button,
.reader-page input {
  font: inherit;
}

.reader-page button,
.reader-page label[for] {
  -webkit-tap-highlight-color: transparent;
}

.reader-page :focus-visible {
  outline: 3px solid rgba(93, 213, 225, 0.42);
  outline-offset: 3px;
}

.reader-page .site-header {
  top: 0;
  border-bottom-color: rgba(118, 199, 212, 0.12);
  background: rgba(2, 15, 25, 0.66);
  backdrop-filter: blur(22px) saturate(120%);
}

.reader-page .brand {
  color: #e8f5f7;
}

.reader-page .nav-links {
  border-color: rgba(129, 211, 220, 0.14);
  background: rgba(2, 19, 30, 0.48);
  box-shadow: inset 0 1px 0 rgba(180, 239, 242, 0.05);
}

.reader-page .nav-links a {
  color: rgba(209, 232, 236, 0.62);
}

.reader-page .nav-links a:hover,
.reader-page .nav-links a[aria-current="page"] {
  background: rgba(122, 220, 229, 0.12);
  color: #ecfbfb;
}

.reader-nav-state {
  justify-self: end;
  border: 1px solid rgba(109, 216, 219, 0.18);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(8, 48, 61, 0.5);
  color: #8de0df;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.reader-hero {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 34px;
}

.reader-hero__copy h1 {
  max-width: 760px;
  margin: 0;
  color: #eefafb;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-shadow: 0 12px 44px rgba(0, 15, 26, 0.72);
}

.reader-hero__copy h1 span {
  color: #72d7df;
  font-style: italic;
}

.reader-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  color: rgba(214, 236, 239, 0.7);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.reader-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reader-hero__meta i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ce0c0;
  box-shadow: 0 0 12px rgba(124, 224, 192, 0.7);
}

.reader-setup {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto 110px;
  padding: 28px;
  border: 1px solid rgba(128, 210, 220, 0.16);
  border-radius: 24px;
  background: rgba(3, 22, 34, 0.64);
  box-shadow: 0 34px 100px rgba(0, 7, 13, 0.38), inset 0 1px 0 rgba(196, 241, 243, 0.06);
  backdrop-filter: blur(28px) saturate(120%);
}

.reader-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 22px;
}

.reader-section-heading h2 {
  margin: 0;
  color: #ecf8f9;
  font-size: 22px;
  font-weight: 540;
  letter-spacing: -0.02em;
}

.reader-storage-status {
  margin: 0;
  border: 1px solid rgba(111, 220, 181, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(25, 93, 73, 0.26);
  color: #91e1c3;
  font-size: 12px;
}

.reader-storage-status[data-mode="session"] {
  border-color: rgba(224, 175, 95, 0.22);
  background: rgba(107, 73, 27, 0.28);
  color: #efc888;
}

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

.reader-setup-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(119, 200, 211, 0.13);
  border-radius: 15px;
  background: rgba(5, 28, 42, 0.7);
  box-shadow: inset 0 1px 0 rgba(183, 236, 239, 0.04);
}

.reader-setup-card--upload {
  background: linear-gradient(150deg, rgba(5, 38, 54, 0.78), rgba(4, 25, 39, 0.72));
}

.reader-setup-card--pages {
  background: linear-gradient(150deg, rgba(8, 37, 49, 0.76), rgba(4, 24, 37, 0.72));
}

.reader-card-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(119, 200, 211, 0.1);
}

.reader-step-number {
  flex: 0 0 auto;
  color: #61c7d2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1;
}

.reader-card-heading p,
.reader-card-heading h3 {
  margin: 0;
}

.reader-card-heading p {
  color: #7d91a0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.reader-card-heading h3 {
  margin-top: 0;
  color: #e3f2f4;
  font-size: 17px;
  font-weight: 560;
  letter-spacing: -0.015em;
}

.reader-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 19px;
}

.reader-form > label:not(.reader-check) {
  color: rgba(215, 235, 238, 0.65);
  font-size: 12px;
  font-weight: 700;
}

.reader-form input[type="email"],
.reader-form input[type="text"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(121, 198, 208, 0.18);
  border-radius: 9px;
  padding: 11px 13px;
  background: rgba(230, 247, 248, 0.94);
  color: #082637;
}

.reader-form input:disabled {
  cursor: not-allowed;
  background: rgba(162, 186, 191, 0.15);
  color: rgba(202, 224, 227, 0.38);
}

.reader-check {
  display: grid;
  grid-template-columns: 17px 1fr;
  gap: 9px;
  align-items: flex-start;
  color: rgba(206, 229, 232, 0.56);
  font-size: 12px;
  line-height: 1.6;
}

.reader-check input {
  margin: 3px 0 0;
}

.reader-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.reader-button:not(:disabled):hover {
  transform: translateY(-1px);
}

.reader-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.reader-button--primary {
  margin-top: auto;
  background: linear-gradient(135deg, #146176, #2795a2);
  color: #f3ffff;
  box-shadow: 0 10px 28px rgba(13, 106, 125, 0.2);
}

.reader-button--ghost {
  border-color: rgba(23, 79, 130, 0.2);
  background: rgba(255, 255, 255, 0.7);
  color: #174f82;
}

.reader-button--danger {
  border-color: rgba(151, 64, 52, 0.18);
  background: rgba(255, 246, 244, 0.86);
  color: #8e3f35;
}

.reader-dropzone {
  flex: 1;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 19px;
  border: 1px dashed rgba(109, 207, 218, 0.3);
  border-radius: 13px;
  padding: 25px;
  background: rgba(3, 19, 30, 0.34);
  color: rgba(220, 239, 241, 0.74);
  cursor: pointer;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.reader-dropzone:hover,
.reader-dropzone[data-dragging="true"] {
  border-color: #61c7d2;
  background: rgba(13, 61, 76, 0.48);
  transform: translateY(-1px);
}

.reader-dropzone[aria-disabled="true"] {
  cursor: not-allowed;
  filter: saturate(0.55);
  opacity: 0.62;
}

.reader-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.reader-dropzone__icon {
  width: 54px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(103, 206, 217, 0.22);
  border-radius: 6px 13px 6px 6px;
  background: rgba(225, 247, 248, 0.92);
  color: #146378;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 30px rgba(0, 10, 18, 0.24);
}

.reader-dropzone strong {
  font-size: 14px;
}

.reader-dropzone small {
  color: rgba(197, 222, 225, 0.42);
  line-height: 1.5;
}

.reader-file-summary {
  margin-top: 14px;
  border-top: 1px solid rgba(119, 200, 211, 0.1);
  padding-top: 12px;
}

.reader-file-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: rgba(202, 227, 230, 0.5);
  font-size: 11px;
}

.reader-file-summary strong {
  max-width: 68%;
  overflow: hidden;
  color: #e3f2f4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-file-summary p {
  margin: 8px 0;
  color: rgba(202, 227, 230, 0.54);
  font-size: 12px;
}

.reader-link-button {
  min-height: 36px;
  align-self: flex-start;
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: #6bd2db;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.reader-link-button--danger {
  color: #e49a8e;
}

.reader-profile {
  display: grid;
  gap: 16px;
  margin-top: 19px;
}

.reader-profile > div {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid rgba(119, 200, 211, 0.1);
  padding: 0 0 16px;
}

.reader-profile span {
  color: rgba(202, 227, 230, 0.48);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.reader-profile strong {
  overflow-wrap: anywhere;
  color: #e3f2f4;
  font-size: 14px;
}

.reader-balance strong {
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.reader-balance b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 500;
}

.reader-field-note {
  min-height: 32px;
  margin: 0;
  color: rgba(198, 224, 223, 0.5);
  font-size: 12px;
  line-height: 1.55;
}

.reader-form progress {
  width: 100%;
  height: 7px;
  accent-color: #2a6aa3;
}

.reader-pack-card {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(218, 184, 111, 0.16);
  border-radius: 14px;
  padding: 17px 20px;
  background: linear-gradient(105deg, rgba(68, 55, 35, 0.42), rgba(5, 30, 42, 0.5));
}

.reader-pack-eyebrow {
  color: #d7b777;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.reader-pack-card h3,
.reader-pack-card p {
  margin: 0;
}

.reader-pack-card h3 {
  margin-top: 4px;
  color: #eef5f3;
  font-size: 18px;
}

.reader-pack-card p {
  margin-top: 5px;
  color: #71818d;
  font-size: 12px;
  line-height: 1.5;
}

.reader-pack-price {
  display: flex;
  gap: 5px;
  align-items: baseline;
  white-space: nowrap;
}

.reader-pack-price strong {
  color: #efcd88;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
}

.reader-pack-price span {
  color: rgba(230, 214, 181, 0.64);
  font-size: 12px;
}

.reader-pack-card button {
  min-height: 42px;
  border: 1px solid rgba(218, 184, 111, 0.16);
  border-radius: 8px;
  padding: 9px 17px;
  background: rgba(88, 78, 57, 0.28);
  color: rgba(226, 211, 183, 0.54);
  cursor: not-allowed;
  font-size: 12px;
  font-weight: 750;
}

.reader-message {
  min-height: 24px;
  margin: 16px 3px 0;
  color: rgba(208, 232, 235, 0.62);
  font-size: 13px;
}

.reader-message[data-tone="success"] { color: #8ee0bd; }
.reader-message[data-tone="warning"] { color: #edc183; }
.reader-message[data-tone="error"] { color: #efa096; }

.reader-workspace {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto 120px;
  overflow: hidden;
  border: 1px solid rgba(94, 112, 122, 0.24);
  border-radius: 18px;
  background: #e8e7e0;
  box-shadow: 0 35px 110px rgba(29, 46, 62, 0.18);
}

.reader-page .site-footer {
  position: relative;
  z-index: 1;
  border-top-color: rgba(111, 197, 207, 0.1);
  background: rgba(1, 11, 19, 0.72);
  backdrop-filter: blur(20px);
}

.reader-page .site-footer .brand,
.reader-page .site-footer h2 {
  color: rgba(232, 247, 248, 0.86);
}

.reader-page .site-footer p,
.reader-page .site-footer a {
  color: rgba(205, 229, 232, 0.5);
}

.reader-page .site-footer a:hover {
  color: #e8f7f8;
}

.reader-workspace__header {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(63, 78, 87, 0.16);
  background: rgba(247, 247, 242, 0.94);
}

.reader-workspace__header h2,
.reader-workspace__header p {
  margin: 0;
}

.reader-workspace__header h2 {
  margin-top: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
}

.reader-workspace__header > div > p:last-child {
  max-width: 680px;
  overflow: hidden;
  margin-top: 5px;
  color: #6e7779;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-workspace__actions {
  display: flex;
  gap: 9px;
}

.reader-desk {
  min-height: 760px;
  display: grid;
  grid-template-columns: 190px minmax(460px, 1fr) 330px;
}

.reader-page-rail,
.reader-insight-rail {
  padding: 22px;
  background: rgba(244, 244, 238, 0.92);
}

.reader-page-rail {
  border-right: 1px solid rgba(63, 78, 87, 0.13);
}

.reader-insight-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 1px solid rgba(63, 78, 87, 0.13);
}

.reader-rail-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(63, 78, 87, 0.15);
  padding-bottom: 13px;
  color: #526064;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.reader-rail-heading b {
  min-width: 24px;
  border-radius: 999px;
  padding: 3px 7px;
  background: #d8e4e9;
  color: #315873;
  text-align: center;
}

.reader-page-list {
  display: grid;
  gap: 7px;
  margin-top: 15px;
}

.reader-page-list button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 8px 10px;
  background: transparent;
  color: #5f6c70;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
}

.reader-page-list button:hover,
.reader-page-list button[aria-current="page"] {
  border-color: rgba(58, 100, 128, 0.18);
  background: #fff;
  color: #214e6c;
}

.reader-empty-note {
  color: #879193;
  font-size: 11px;
  line-height: 1.6;
}

.reader-canvas-column {
  min-width: 0;
  background:
    linear-gradient(rgba(98, 105, 105, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 105, 105, 0.035) 1px, transparent 1px),
    #d7d8d4;
  background-size: 20px 20px;
}

.reader-toolbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 1px solid rgba(63, 78, 87, 0.14);
  padding: 8px 18px;
  background: rgba(240, 240, 235, 0.95);
  color: #5b686c;
  font-size: 12px;
}

.reader-toolbar button,
.reader-toolbar input {
  min-width: 36px;
  min-height: 34px;
  border: 1px solid rgba(65, 84, 94, 0.2);
  border-radius: 6px;
  background: #fff;
  color: #314e5f;
}

.reader-toolbar button {
  cursor: pointer;
}

.reader-toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.reader-toolbar input {
  width: 62px;
  padding: 5px;
  text-align: center;
}

.reader-toolbar__local {
  margin-left: auto;
  border: 1px solid rgba(52, 104, 82, 0.18);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(229, 242, 235, 0.72);
  color: #3d7059;
  font-size: 10px;
  font-weight: 750;
}

.reader-canvas-stage {
  min-height: 706px;
  overflow: auto;
  padding: 28px 24px 60px;
  text-align: center;
}

.reader-canvas-stage canvas {
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(61, 68, 71, 0.18);
  background: #fffef8;
  box-shadow: 0 18px 55px rgba(39, 47, 51, 0.2);
}

.reader-insight-card {
  border: 1px solid rgba(81, 91, 91, 0.14);
  border-radius: 9px;
  padding: 17px;
  background: rgba(255, 255, 252, 0.92);
}

.reader-insight-card > span {
  color: #8a806e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.reader-insight-card h3,
.reader-insight-card p {
  margin: 0;
}

.reader-insight-card h3 {
  margin-top: 7px;
  color: #303b3e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
}

.reader-insight-card p,
.reader-insight-card li {
  color: #667175;
  font-size: 12px;
  line-height: 1.75;
}

.reader-insight-card p {
  max-height: 330px;
  overflow: auto;
  margin-top: 10px;
  white-space: pre-wrap;
}

.reader-insight-card--translation {
  border-color: rgba(204, 163, 75, 0.28);
  background: #fff9e9;
}

.reader-insight-card--translation h3 {
  color: #7a5a20;
}

.reader-insight-card--boundary ul {
  margin: 10px 0 0;
  padding-left: 17px;
}

@media (max-width: 1120px) {
  .reader-setup-grid {
    grid-template-columns: 1fr 1fr;
  }

  .reader-setup-card--pages {
    grid-column: 1 / -1;
    min-height: 290px;
  }

  .reader-desk {
    grid-template-columns: 160px minmax(460px, 1fr);
  }

  .reader-insight-rail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(63, 78, 87, 0.13);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .reader-nav-state {
    display: none;
  }

  .reader-hero,
  .reader-setup {
    width: min(100% - 24px, 1320px);
  }

  .reader-hero {
    padding: 48px 0 26px;
  }

  .reader-hero__copy h1 {
    font-size: clamp(36px, 11vw, 54px);
  }

  .reader-setup {
    padding: 20px;
    border-radius: 18px;
  }

  .reader-section-heading,
  .reader-workspace__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .reader-section-heading {
    display: flex;
  }

  .reader-setup-grid {
    grid-template-columns: 1fr;
  }

  .reader-setup-card--pages {
    grid-column: auto;
  }

  .reader-pack-card {
    grid-template-columns: 1fr auto;
  }

  .reader-pack-card button {
    grid-column: 1 / -1;
  }

  .reader-workspace {
    width: calc(100% - 16px);
    border-radius: 13px;
  }

  .reader-workspace__actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .reader-workspace__actions .reader-button {
    flex: 1 1 180px;
  }

  .reader-desk {
    grid-template-columns: 1fr;
  }

  .reader-page-rail {
    border-right: 0;
    border-bottom: 1px solid rgba(63, 78, 87, 0.13);
  }

  .reader-page-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .reader-page-list button {
    flex: 0 0 auto;
  }

  .reader-insight-rail {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .reader-toolbar {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .reader-toolbar__local {
    margin-left: 12px;
    white-space: nowrap;
  }

  .reader-canvas-stage {
    min-height: 480px;
    padding-inline: 12px;
  }
}

@media (max-width: 460px) {
  .reader-setup-card {
    min-height: 0;
    padding: 19px;
  }

  .reader-pack-card {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reader-page *,
  .reader-page *::before,
  .reader-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 2026-07-16 · 官网产品展示型首屏 */
.reader-page {
  background: #edf4f8;
  color: #0e2543;
}

.abyss-background {
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.96) 0 10%, transparent 37%),
    linear-gradient(145deg, #f7fbfd 0%, #edf4f8 46%, #dce8ef 100%);
}

.glossa-flow {
  position: absolute;
  right: -14vw;
  bottom: -26vh;
  width: 104vw;
  height: 64vh;
  border-radius: 46% 54% 0 0 / 58% 62% 0 0;
  filter: blur(1px);
  transform-origin: 70% 70%;
  animation: glossa-flow-drift 20s ease-in-out infinite alternate;
}

.glossa-flow--one {
  background:
    radial-gradient(ellipse at 55% 10%, rgba(255, 255, 255, 0.88) 0 5%, transparent 27%),
    linear-gradient(168deg, transparent 0 32%, rgba(185, 211, 227, 0.28) 33% 42%, rgba(255, 255, 255, 0.58) 43% 48%, rgba(153, 191, 216, 0.26) 49% 60%, transparent 61%);
  opacity: 0.92;
}

.glossa-flow--two {
  right: 18vw;
  bottom: -38vh;
  background: linear-gradient(176deg, transparent 0 28%, rgba(214, 230, 239, 0.78) 29% 45%, rgba(128, 174, 204, 0.16) 46% 56%, transparent 57%);
  opacity: 0.72;
  animation-delay: -8s;
}

@keyframes glossa-flow-drift {
  from { transform: translate3d(-1.5%, 0, 0) rotate(-1deg) scale(1.01); }
  to { transform: translate3d(2%, -2%, 0) rotate(1.2deg) scale(1.04); }
}

.reader-page :focus-visible {
  outline-color: rgba(42, 106, 163, 0.42);
}

.reader-page .site-header {
  border-bottom-color: rgba(105, 144, 168, 0.16);
  background: rgba(246, 250, 252, 0.78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(115%);
}

.reader-page .brand {
  color: #0e2543;
}

.reader-page .nav-links {
  border-color: rgba(105, 144, 168, 0.14);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.reader-page .nav-links a {
  color: #5f7080;
}

.reader-page .nav-links a:hover,
.reader-page .nav-links a[aria-current="page"] {
  background: #fff;
  color: #174f82;
  box-shadow: 0 3px 12px rgba(23, 51, 92, 0.08);
}

.reader-nav-state {
  border-color: rgba(42, 106, 163, 0.18);
  background: rgba(255, 255, 255, 0.58);
  color: #174f82;
}

.reader-hero {
  min-height: calc(100vh - var(--header-height));
  width: min(1280px, calc(100% - 56px));
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(630px, 1.45fr);
  gap: clamp(34px, 5vw, 82px);
  align-items: center;
  padding: 58px 0 78px;
}

.reader-hero__copy {
  position: relative;
  z-index: 2;
}

.reader-hero__copy h1 {
  max-width: 490px;
  color: #0e2543;
  font-family: "Iowan Old Style", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  font-size: clamp(46px, 4.45vw, 72px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.04;
  text-shadow: none;
}

.reader-hero__copy h1 span {
  color: #174f82;
  font-style: normal;
}

.reader-hero__copy > p {
  margin: 28px 0 0;
  color: #354f69;
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: -0.02em;
}

.reader-hero__button {
  width: fit-content;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 34px;
  border-radius: 10px;
  padding: 14px 25px;
  background: linear-gradient(135deg, #174f82, #0e65a8);
  color: #fff;
  box-shadow: 0 14px 34px rgba(23, 79, 130, 0.22);
  font-size: 16px;
  font-weight: 720;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.reader-hero__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(23, 79, 130, 0.28);
}

.reader-hero__button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.reader-hero__meta {
  margin-top: 18px;
  color: #71889a;
  font-size: 11px;
}

.reader-hero__meta i {
  background: #2f7d5d;
  box-shadow: 0 0 10px rgba(47, 125, 93, 0.34);
}

.reader-product-preview {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(105, 144, 168, 0.25);
  border-radius: 14px;
  background: rgba(252, 254, 255, 0.96);
  box-shadow:
    0 30px 76px rgba(23, 51, 92, 0.18),
    0 8px 24px rgba(23, 51, 92, 0.09),
    inset 0 1px 0 #fff;
  color: #0e2543;
}

.reader-product-preview::before {
  position: absolute;
  inset: -30% 30% auto -20%;
  height: 220px;
  background: radial-gradient(circle, rgba(81, 151, 202, 0.12), transparent 68%);
  content: "";
  pointer-events: none;
}

.reader-product-preview__fallback {
  position: relative;
  z-index: 1;
  transition: opacity 220ms ease;
}

.reader-product-preview__frame {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 3;
  width: 160%;
  height: 160%;
  border: 0;
  background: #f4f0e8;
  opacity: 0;
  pointer-events: auto;
  touch-action: auto;
  transform: scale(0.625);
  transform-origin: top left;
  transition: opacity 220ms ease;
}

.reader-product-preview.has-live-reader .reader-product-preview__frame {
  opacity: 1;
}

.reader-product-preview.has-live-reader .reader-product-preview__fallback {
  opacity: 0;
}

.reader-preview__topbar {
  height: 43px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(105, 144, 168, 0.18);
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 10px;
}

.reader-preview__topbar strong {
  color: #174f82;
  font-size: 12px;
}

.reader-preview__topbar > span {
  max-width: 260px;
  overflow: hidden;
  color: #354f69;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-preview__topbar > div {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.reader-preview__topbar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d7e4ec;
}

.reader-preview__toolbar {
  min-height: 37px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(105, 144, 168, 0.15);
  padding: 0 15px;
  color: #62798c;
  font-size: 10px;
}

.reader-preview__toolbar b {
  margin-left: auto;
  color: #354f69;
  font-weight: 650;
}

.reader-preview__body {
  height: clamp(420px, 44vw, 530px);
  display: grid;
  grid-template-columns: 66px minmax(320px, 1fr) minmax(150px, 0.38fr);
  background: #f3f7f9;
}

.reader-preview__pages {
  display: flex;
  flex-direction: column;
  gap: 11px;
  border-right: 1px solid rgba(105, 144, 168, 0.14);
  padding: 13px 10px;
  background: #f7fafc;
}

.reader-preview__page-thumb {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #8798a6;
  font-size: 8px;
}

.reader-preview__page-thumb > span {
  width: 40px;
  height: 52px;
  border: 1px solid #d4e0e7;
  border-radius: 2px;
  background:
    linear-gradient(#aebdca 0 0) 7px 9px / 25px 2px no-repeat,
    repeating-linear-gradient(180deg, #d1dae1 0 1px, transparent 1px 4px) 7px 16px / 25px 25px no-repeat,
    #fff;
  box-shadow: 0 2px 5px rgba(23, 51, 92, 0.07);
}

.reader-preview__page-thumb.is-current > span {
  border: 2px solid #2a6aa3;
  box-shadow: 0 3px 10px rgba(42, 106, 163, 0.16);
}

.reader-preview__page-thumb.is-current small {
  color: #174f82;
  font-weight: 750;
}

.reader-preview__paper {
  align-self: stretch;
  overflow: hidden;
  margin: 13px 12px;
  padding: 30px clamp(22px, 3vw, 45px);
  background: #fff;
  box-shadow: 0 2px 12px rgba(23, 51, 92, 0.09);
  color: #18232c;
  font-family: "Iowan Old Style", "Songti SC", Georgia, serif;
}

.reader-preview__paper-rule {
  height: 3px;
  margin-bottom: 18px;
  background: #17222a;
}

.reader-preview__paper h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(20px, 2.15vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.reader-preview__authors {
  margin: 11px auto 22px;
  color: #4e5961;
  font-size: 8px;
  text-align: center;
}

.reader-preview__paper h3 {
  margin: 0 0 7px;
  font-size: 12px;
}

.reader-preview__paper > p:not(.reader-preview__authors) {
  margin: 0;
  font-size: clamp(8px, 0.72vw, 10px);
  line-height: 1.55;
}

.reader-preview__columns {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 22px;
  margin-top: 24px;
  border-top: 1px solid #b7c1c8;
  padding-top: 15px;
}

.reader-preview__columns span {
  height: 4px;
  display: block;
  margin: 7px 0;
  background: linear-gradient(90deg, #9eaab2 0 86%, transparent 86%);
  opacity: 0.58;
}

.reader-preview__columns figure {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  margin: 0;
  border: 1px solid #cad6dd;
  border-radius: 7px;
  background: #f8fbfc;
  color: #285d84;
  font-family: ui-monospace, monospace;
  font-size: 7px;
}

.reader-preview__columns figure b {
  border: 1px solid #9ab4c7;
  border-radius: 3px;
  padding: 3px 7px;
  background: #eaf2f7;
}

.reader-preview__columns figure i {
  width: 1px;
  height: 10px;
  background: #9ab4c7;
}

.reader-preview__insights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid rgba(105, 144, 168, 0.14);
  padding: 13px;
  background: rgba(249, 252, 253, 0.96);
}

.reader-preview__insights section {
  border: 1px solid rgba(105, 144, 168, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(23, 51, 92, 0.05);
}

.reader-preview__insights span {
  color: #174f82;
  font-size: 10px;
  font-weight: 750;
}

.reader-preview__insights p {
  margin: 8px 0 0;
  color: #4d6273;
  font-size: clamp(8px, 0.68vw, 10px);
  line-height: 1.58;
}

.reader-preview__insights footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: #557086;
  font-size: 9px;
}

.reader-preview__insights footer i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2f7d5d;
}

.reader-setup {
  scroll-margin-top: calc(var(--header-height) + 22px);
  width: min(1180px, calc(100% - 48px));
  margin-bottom: 100px;
  border-color: rgba(105, 144, 168, 0.22);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 24px 70px rgba(23, 51, 92, 0.11), inset 0 1px 0 #fff;
  backdrop-filter: blur(24px) saturate(105%);
}

.reader-section-heading h2,
.reader-card-heading h3 {
  color: #0e2543;
}

.reader-storage-status {
  border-color: rgba(47, 125, 93, 0.18);
  background: rgba(237, 249, 244, 0.82);
  color: #2f7d5d;
}

.reader-setup-card,
.reader-setup-card--upload,
.reader-setup-card--pages {
  min-height: 294px;
  border-color: rgba(105, 144, 168, 0.18);
  background: rgba(248, 251, 253, 0.82);
  box-shadow: inset 0 1px 0 #fff;
}

.reader-card-heading {
  border-bottom-color: rgba(105, 144, 168, 0.14);
}

.reader-step-number {
  color: #2a6aa3;
}

.reader-form > label:not(.reader-check),
.reader-check,
.reader-field-note,
.reader-dropzone small,
.reader-file-summary > div,
.reader-file-summary p,
.reader-profile span {
  color: #718596;
}

.reader-form input[type="email"],
.reader-form input[type="text"] {
  border-color: rgba(105, 144, 168, 0.24);
  background: rgba(255, 255, 255, 0.96);
  color: #0e2543;
}

.reader-form input:disabled {
  background: rgba(224, 234, 240, 0.72);
  color: #9aabb7;
}

.reader-button--primary {
  background: linear-gradient(135deg, #174f82, #2a6aa3);
  box-shadow: 0 10px 24px rgba(23, 79, 130, 0.18);
}

.reader-dropzone {
  border-color: rgba(42, 106, 163, 0.28);
  background: rgba(237, 244, 248, 0.72);
  color: #354f69;
}

.reader-dropzone:hover,
.reader-dropzone[data-dragging="true"] {
  border-color: #2a6aa3;
  background: #eef5f9;
}

.reader-dropzone__icon {
  border-color: rgba(42, 106, 163, 0.2);
  background: #fff;
  color: #174f82;
  box-shadow: 0 8px 20px rgba(23, 51, 92, 0.1);
}

.reader-file-summary {
  border-top-color: rgba(105, 144, 168, 0.14);
}

.reader-file-summary strong,
.reader-profile strong {
  color: #0e2543;
}

.reader-link-button {
  color: #2a6aa3;
}

.reader-link-button--danger {
  color: #a44f43;
}

.reader-profile > div {
  border-bottom-color: rgba(105, 144, 168, 0.14);
}

.reader-pack-card {
  border-color: rgba(105, 144, 168, 0.18);
  background: linear-gradient(105deg, rgba(237, 244, 248, 0.88), rgba(255, 255, 255, 0.68));
}

.reader-pack-eyebrow,
.reader-pack-price strong {
  color: #174f82;
}

.reader-pack-card h3 {
  color: #0e2543;
}

.reader-pack-price span,
.reader-pack-card p {
  color: #718596;
}

.reader-pack-card button {
  border-color: rgba(105, 144, 168, 0.2);
  background: rgba(224, 234, 240, 0.72);
  color: #7f929f;
}

.reader-message {
  color: #5f7080;
}

.reader-page .site-footer {
  border-top-color: rgba(105, 144, 168, 0.14);
  background: rgba(237, 244, 248, 0.86);
  backdrop-filter: blur(20px);
}

.reader-page .site-footer .brand,
.reader-page .site-footer h2 {
  color: #0e2543;
}

.reader-page .site-footer p,
.reader-page .site-footer a {
  color: #718596;
}

.reader-page .site-footer a:hover {
  color: #174f82;
}

@media (max-width: 1120px) {
  .reader-hero {
    grid-template-columns: minmax(260px, 0.55fr) minmax(580px, 1.35fr);
    gap: 32px;
  }

  .reader-preview__body {
    grid-template-columns: 58px minmax(300px, 1fr) 145px;
  }
}

@media (max-width: 920px) {
  .reader-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 76px;
  }

  .reader-hero__copy {
    max-width: 610px;
  }

  .reader-product-preview {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .reader-hero,
  .reader-setup {
    width: min(100% - 24px, 1180px);
  }

  .reader-hero {
    padding: 50px 0 64px;
  }

  .reader-hero__copy h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .reader-hero__copy > p {
    margin-top: 22px;
    font-size: 18px;
  }

  .reader-hero__button {
    min-height: 52px;
    margin-top: 28px;
  }

  .reader-preview__body {
    height: 410px;
    grid-template-columns: 48px minmax(300px, 1fr);
  }

  .reader-preview__insights {
    display: none;
  }

  .reader-preview__pages {
    padding-inline: 6px;
  }

  .reader-preview__page-thumb > span {
    width: 34px;
    height: 45px;
  }

  .reader-preview__paper {
    padding-inline: 25px;
  }
}

@media (max-width: 520px) {
  .reader-preview__topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .reader-preview__topbar > div,
  .reader-preview__toolbar > span:nth-last-child(-n + 2) {
    display: none;
  }

  .reader-preview__body {
    height: 355px;
    grid-template-columns: 40px minmax(260px, 1fr);
  }

  .reader-preview__pages {
    gap: 7px;
  }

  .reader-preview__page-thumb > span {
    width: 28px;
    height: 38px;
  }

  .reader-preview__paper {
    margin: 9px;
    padding: 21px 18px;
  }

  .reader-preview__columns {
    gap: 12px;
  }
}

/* Full reader shell: the mature Glossa session remains at its native 1:1 scale. */
.reader-page {
  height: 100vh;
  overflow: hidden;
  background: #edf3f6;
  color: #10243a;
}

.reader-page main {
  height: 100vh;
  min-height: 0;
}

.reader-page .site-header[hidden] {
  display: none;
}

.reader-page .site-header:not([hidden]) {
  height: 56px;
  border-bottom: 1px solid rgba(76, 110, 132, 0.16);
  background: rgba(246, 249, 250, 0.94);
  box-shadow: 0 1px 14px rgba(28, 54, 72, 0.06);
  backdrop-filter: blur(20px) saturate(135%);
}

.reader-page .site-header__inner {
  height: 56px;
}

.reader-page .brand {
  color: #10243a;
}

.reader-page .nav-links {
  border-color: rgba(76, 110, 132, 0.13);
  background: rgba(229, 237, 241, 0.66);
  box-shadow: none;
}

.reader-page .nav-links a {
  color: #667b89;
}

.reader-page .nav-links a:hover,
.reader-page .nav-links a[aria-current="page"] {
  background: #ffffff;
  color: #153c61;
}

.reader-nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.reader-showcase-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(33, 111, 88, 0.16);
  border-radius: 999px;
  padding: 0 10px;
  background: #edf7f2;
  color: #216f58;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.04em;
}

.reader-nav-button,
.reader-profile-button {
  min-height: 38px;
  border: 1px solid rgba(61, 98, 124, 0.18);
  border-radius: 10px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.82);
  color: #27475f;
  font-size: 13px;
  font-weight: 680;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.reader-nav-button:hover,
.reader-profile-button:hover {
  border-color: rgba(38, 101, 147, 0.34);
  background: #ffffff;
  color: #174f82;
  transform: translateY(-1px);
}

.reader-nav-button--primary {
  border-color: #174f82;
  background: #174f82;
  color: #ffffff;
}

.reader-nav-button--primary:hover {
  border-color: #0f406b;
  background: #0f406b;
  color: #ffffff;
}

.reader-profile-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 7px;
}

.reader-profile-avatar {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #dce9ef;
  color: #174f82;
  font-size: 12px;
  font-weight: 800;
}

.reader-live-stage,
.reader-product-preview {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
}

.reader-live-stage {
  position: relative;
  padding: 0;
}

.reader-product-preview {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #e4edf4;
  box-shadow: none;
}

.reader-product-preview::before {
  content: none;
}

.reader-product-preview__frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #e4edf4;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transform-origin: center;
  transition: none;
}

.reader-product-preview.has-live-reader .reader-product-preview__frame {
  opacity: 1;
  pointer-events: auto;
}

.reader-product-preview__fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #e8eef0;
  color: #142d3d;
  text-align: left;
}

.fixed-reader {
  display: grid;
  height: 100%;
  grid-template-rows: 64px minmax(0, 1fr);
  background:
    radial-gradient(circle at 72% 8%, rgba(255, 255, 255, 0.9), transparent 30%),
    #e8eef0;
}

.fixed-reader__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(44, 78, 98, 0.12);
  padding: 0 24px;
  background: rgba(247, 249, 248, 0.88);
  backdrop-filter: blur(18px);
}

.fixed-reader__document {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.fixed-reader__mark {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: #173f55;
  color: #f6f2e7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  text-decoration: none;
}

.fixed-reader__document div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.fixed-reader__document strong {
  overflow: hidden;
  color: #173244;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fixed-reader__document span:last-child,
.fixed-reader__status {
  color: #71838d;
  font-size: 10px;
}

.fixed-reader__status {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.fixed-reader__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2a8568;
  box-shadow: 0 0 0 4px rgba(42, 133, 104, 0.1);
}

.fixed-reader__body {
  display: grid;
  min-height: 0;
  grid-template-columns: 104px minmax(360px, 1fr) minmax(280px, 0.72fr);
}

.fixed-reader__pages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid rgba(44, 78, 98, 0.1);
  padding: 22px 14px;
  background: rgba(237, 242, 243, 0.86);
}

.fixed-reader__eyebrow {
  margin: 0 4px 7px;
  color: #87969e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fixed-reader__page {
  display: grid;
  gap: 3px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 12px 8px;
  background: transparent;
  color: #71828b;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.fixed-reader__page:hover {
  transform: translateY(-1px);
  color: #234b61;
}

.fixed-reader__page.is-active {
  border-color: rgba(32, 91, 112, 0.14);
  background: #ffffff;
  color: #173f55;
  box-shadow: 0 8px 24px rgba(30, 63, 80, 0.08);
}

.fixed-reader__page b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
}

.fixed-reader__page small {
  font-size: 10px;
}

.fixed-reader__paper {
  min-width: 0;
  overflow-y: auto;
  padding: clamp(28px, 4vw, 60px) clamp(28px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(48, 73, 84, 0.025) 1px, transparent 1px),
    #f8f5ed;
  background-size: 34px 100%;
  color: #202a2c;
}

.fixed-reader__paper-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #8a8174;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fixed-reader__paper h1 {
  max-width: 720px;
  margin: 26px 0 18px;
  color: #1b2729;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3.1vw, 46px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.fixed-reader__paper > p {
  max-width: 720px;
  color: #526064;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.72;
}

.fixed-reader__figure {
  display: grid;
  min-height: 160px;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
  border: 1px solid rgba(73, 92, 89, 0.13);
  border-radius: 16px;
  padding: 24px;
  background: rgba(231, 235, 223, 0.56);
}

.fixed-reader__nodes {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
}

.fixed-reader__nodes::before {
  position: absolute;
  right: 8%;
  left: 8%;
  height: 2px;
  background: linear-gradient(90deg, #86a49b, #3f7f6e, #86a49b);
  content: "";
}

.fixed-reader__nodes i {
  position: relative;
  width: clamp(22px, 3vw, 38px);
  height: clamp(22px, 3vw, 38px);
  border: 5px solid #dde8df;
  border-radius: 50%;
  background: #3f7f6e;
  box-shadow: 0 7px 18px rgba(47, 99, 83, 0.16);
}

.fixed-reader__nodes i:nth-child(even) {
  transform: translateY(15px) scale(0.78);
  background: #6b9b71;
}

.fixed-reader__figure > div:last-child {
  display: grid;
  gap: 5px;
  text-align: right;
}

.fixed-reader__figure strong {
  color: #216f58;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 3.4vw, 48px);
  font-weight: 500;
}

.fixed-reader__figure span,
.fixed-reader__caption {
  color: #728078;
  font-size: 10px;
}

.fixed-reader__caption {
  margin-top: 10px;
  font-family: inherit !important;
  line-height: 1.55 !important;
}

.fixed-reader__translation {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow-y: auto;
  border-left: 1px solid rgba(44, 78, 98, 0.1);
  padding: clamp(26px, 3vw, 44px);
  background: rgba(247, 249, 248, 0.94);
}

.fixed-reader__translation-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #216f58;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fixed-reader__translation-heading b {
  border-radius: 999px;
  padding: 5px 8px;
  background: #e5f0eb;
  font-weight: 760;
  letter-spacing: 0;
}

.fixed-reader__translation h2 {
  margin: 28px 0 16px;
  color: #173244;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(23px, 2.2vw, 34px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.28;
}

.fixed-reader__translation > p {
  margin: 0;
  color: #526873;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.9;
}

.fixed-reader__note {
  margin-top: 30px;
  border-left: 2px solid #4a8e79;
  padding: 4px 0 4px 15px;
}

.fixed-reader__note span {
  color: #216f58;
  font-size: 10px;
  font-weight: 800;
}

.fixed-reader__note p {
  margin: 7px 0 0;
  color: #5d7079;
  font-size: 12px;
  line-height: 1.65;
}

.fixed-reader__translation footer {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 32px;
}

.fixed-reader__translation footer span {
  border: 1px solid rgba(50, 90, 106, 0.1);
  border-radius: 999px;
  padding: 6px 8px;
  background: #f0f4f3;
  color: #72838b;
  font-size: 9px;
}

.reader-panel-backdrop {
  position: fixed;
  inset: 56px 0 0;
  z-index: 70;
  background: rgba(15, 34, 47, 0.24);
  backdrop-filter: blur(2px);
}

.reader-panel {
  position: fixed;
  top: 56px;
  right: 0;
  bottom: 0;
  z-index: 80;
  width: min(430px, 100%);
  margin: 0;
  padding: 22px;
  overflow-y: auto;
  border: 0;
  border-left: 1px solid rgba(61, 98, 124, 0.16);
  border-radius: 18px 0 0 18px;
  background: #f7fafb;
  color: #10243a;
  box-shadow: -24px 0 70px rgba(24, 50, 68, 0.18);
  backdrop-filter: none;
}

.reader-panel .reader-section-heading {
  position: relative;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-right: 42px;
}

.reader-panel .reader-section-heading h2 {
  color: #10243a;
  font-size: 24px;
}

.reader-panel .reader-section-heading p {
  margin-top: 5px;
  color: #718493;
}

.reader-panel-close {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(61, 98, 124, 0.16);
  border-radius: 50%;
  background: #ffffff;
  color: #526a7a;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.reader-panel .reader-setup-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.reader-panel .reader-setup-card {
  min-height: 0;
  padding: 18px;
  border-color: rgba(70, 107, 131, 0.14);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(31, 61, 81, 0.055);
}

.reader-panel[data-view="account"] [data-panel-section="document"],
.reader-panel[data-view="document"] #account-card,
.reader-panel[data-view="document"] #reader-quota-card,
.reader-panel[data-view="document"] [data-panel-section="account"] {
  display: none;
}

.reader-quota-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.reader-quota-summary > div {
  padding: 12px 8px;
  border-radius: 11px;
  background: #edf4f7;
  text-align: center;
}

.reader-quota-summary span {
  display: block;
  color: #78909f;
  font-size: 11px;
}

.reader-quota-summary strong {
  display: block;
  margin-top: 4px;
  color: #174f82;
  font-size: 21px;
}

.reader-quota-records {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(70, 107, 131, 0.12);
}

.reader-quota-record {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(70, 107, 131, 0.12);
}

.reader-quota-record p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.reader-quota-record p strong {
  color: #294b64;
  font-size: 13px;
}

.reader-quota-record p b {
  color: #168062;
  font-size: 13px;
  font-weight: 800;
}

.reader-quota-record > span {
  color: #8a9ba7;
  font-size: 11px;
}

.reader-panel .reader-storage-status {
  margin: 12px 2px 0;
  color: #718493;
}

.reader-workspace {
  position: fixed;
  inset: 56px 0 0;
  z-index: 60;
  width: 100%;
  height: calc(100vh - 56px);
  margin: 0;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: #edf3f6;
  box-shadow: none;
}

.reader-workspace__desk {
  min-height: calc(100vh - 128px);
}

@media (max-width: 760px) {
  .reader-page .nav-shell {
    width: calc(100% - 20px);
    grid-template-columns: auto 1fr;
    height: 56px;
    padding-block: 0;
    gap: 10px;
  }

  .reader-page .nav-links {
    display: none;
  }

  .reader-nav-actions {
    gap: 6px;
  }

  .reader-showcase-badge {
    display: none;
  }

  .reader-nav-button,
  .reader-profile-button {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .reader-profile-button {
    padding-left: 5px;
  }

  .reader-panel {
    width: 100%;
    border-left: 0;
    border-radius: 0;
  }

  .fixed-reader {
    grid-template-rows: 58px minmax(0, 1fr);
  }

  .fixed-reader__topbar {
    padding-inline: 14px;
  }

  .fixed-reader__status {
    display: none;
  }

  .fixed-reader__body {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .fixed-reader__pages {
    padding: 16px 7px;
  }

  .fixed-reader__eyebrow,
  .fixed-reader__page small {
    display: none;
  }

  .fixed-reader__page {
    padding: 10px 7px;
    text-align: center;
  }

  .fixed-reader__page b {
    font-size: 17px;
  }

  .fixed-reader__paper {
    padding: 25px 22px 42px;
  }

  .fixed-reader__paper h1 {
    font-size: clamp(25px, 8vw, 36px);
  }

  .fixed-reader__figure {
    grid-template-columns: 1fr;
  }

  .fixed-reader__figure > div:last-child {
    text-align: left;
  }

  .fixed-reader__translation {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 70px;
    max-height: 42%;
    border: 1px solid rgba(44, 78, 98, 0.12);
    border-radius: 16px;
    padding: 18px;
    background: rgba(249, 251, 250, 0.96);
    box-shadow: 0 18px 48px rgba(23, 51, 68, 0.16);
    backdrop-filter: blur(16px);
  }

  .fixed-reader__translation h2 {
    margin: 12px 0 8px;
    font-size: 18px;
  }

  .fixed-reader__translation > p {
    font-size: 12px;
    line-height: 1.65;
  }

  .fixed-reader__note,
  .fixed-reader__translation footer {
    display: none;
  }
}

@media (max-width: 430px) {
  .reader-page .brand span:not(.brand-mark),
  .reader-profile-button > span:last-child {
    display: none;
  }

  .reader-nav-button {
    padding-inline: 9px;
  }
}
