:root {
  --ink: #252525;
  --muted: #757575;
  --paper: #faf9f6;
  --line: #d9d7d0;
  --dark: #292929;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, input, a { -webkit-tap-highlight-color: transparent; outline-offset: 5px; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.gate { min-height: 100svh; display: flex; flex-direction: column; }
.gate-header, .reader-header {
  width: min(1120px, calc(100% - 96px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0 25px;
  border-bottom: 1px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 22px; }
.brand-mark { font: 30px var(--serif); letter-spacing: -1px; }
.brand-mark span { color: var(--ink); }
.brand-label { font-size: 10px; letter-spacing: 2px; padding-left: 22px; border-left: 1px solid var(--line); }
.private-label { display: flex; align-items: center; gap: 9px; font-size: 9px; letter-spacing: 1.5px; color: var(--muted); }
.status-dot { display: inline-block; width: 4px; height: 4px; flex-shrink: 0; background: #7a7a7a; border-radius: 50%; }
.gate-main {
  width: min(980px, calc(100% - 96px));
  margin: auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 100px;
  align-items: center;
  padding: 72px 0 90px;
}
.eyebrow { font-size: 9px; letter-spacing: 2px; font-weight: 500; color: var(--muted); }
.intro h1 { font: 400 clamp(62px, 6.5vw, 86px)/1.08 var(--serif); letter-spacing: -3px; margin: 30px 0 28px; }
.serif-accent { font-style: italic; }
.intro-copy { font: 16px/1.9 var(--serif); color: #686868; margin: 0; }
.intro-foot { display: flex; align-items: center; gap: 14px; margin-top: 42px; font-size: 8px; letter-spacing: 1.6px; color: #737373; }
.fine-line { height: 1px; width: 30px; background: #777; }
.small-dot { font-size: 12px; }
.access-card { padding: 34px 0 0; border-top: 2px solid var(--ink); }
.lock-icon { display: none; }
.card-eyebrow { font-size: 8px; letter-spacing: 1.8px; }
.access-card h2 { font: 400 27px/1.25 var(--serif); margin: 17px 0 13px; letter-spacing: -.4px; }
.card-copy { font-size: 12px; color: #777; line-height: 1.9; margin: 0 0 28px; max-width: 320px; }
form label { display: flex; justify-content: space-between; align-items: center; font-size: 11px; margin-bottom: 10px; }
form label span { font-size: 7px; letter-spacing: 1.4px; color: #999; }
.password-field { display: flex; align-items: center; border: 1px solid #c9c7c0; background: #fff; transition: border-color .2s; }
.password-field:focus-within { border-color: #363636; box-shadow: 0 0 0 2px #2929290a; }
.password-field input { min-width: 0; flex: 1; padding: 15px 13px; border: 0; background: transparent; outline: none; font-size: 13px; }
.password-field input::placeholder { font-size: 11px; color: #999; }
.eye-button { border: 0; background: transparent; padding: 13px; color: #888; display: flex; }
.eye-button svg { width: 17px; height: 17px; }
.form-message { min-height: 18px; color: #9a3831; font-size: 11px; line-height: 1.6; margin: 9px 0; }
.primary-button { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; color: white; background: var(--dark); border: 1px solid var(--dark); font-size: 11px; letter-spacing: .6px; transition: background .2s; }
.primary-button:hover { background: #454545; }
.primary-button span:last-child { font-size: 18px; font-weight: 300; }
.card-note { display: flex; align-items: center; gap: 7px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: #888; font-size: 9px; line-height: 1.8; }
.gate-footer { display: flex; justify-content: space-between; align-items: center; width: min(1120px, calc(100% - 96px)); margin: 0 auto; padding: 20px 0 27px; border-top: 1px solid var(--line); font: italic 12px var(--serif); color: #888; }
.gate-footer span:last-child { font: 8px var(--sans); letter-spacing: 1.8px; }
.reader-header { padding: 22px 0 20px; }
.text-button { display: flex; align-items: center; gap: 12px; border: 0; background: transparent; color: #777; font-size: 11px; padding: 10px 0 10px 10px; }
.reader-main { max-width: 1040px; margin: auto; padding: 40px 32px 0; }
.reader-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.reader-heading .eyebrow { font-size: 8px; }
.reader-heading h1 { font: 400 36px/1.2 var(--serif); margin: 13px 0 0; letter-spacing: -.8px; }
.reader-heading h1 span { display: block; margin-top: 9px; font: italic 13px var(--serif); color: #888; letter-spacing: 0; }
.language-switch { display: flex; border: 1px solid #c9c7c0; padding: 3px; flex-shrink: 0; background: transparent; }
.language-switch button { padding: 9px 17px; border: 0; background: transparent; font-size: 11px; color: #777; }
.language-switch button.active { background: var(--dark); color: #fff; }
.document-shell { border: 1px solid var(--line); background: #eae9e4; }
.document-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.document-name { display: flex; align-items: center; gap: 10px; font-size: 11px; white-space: nowrap; }
.pdf-badge { border: 1px solid #d5d5d5; padding: 4px; font-size: 7px; letter-spacing: 1px; color: #737373; }
.page-count { color: #929292; font-size: 10px; }
.document-actions { display: flex; align-items: center; gap: 9px; }
.icon-button { border: 0; background: transparent; color: #666; font-size: 20px; min-width: 30px; height: 32px; }
#zoom-label { color: #888; font-size: 10px; min-width: 35px; text-align: center; }
.toolbar-divider { height: 16px; width: 1px; background: var(--line); margin: 0 4px; }
.download-button { display: flex; align-items: center; gap: 7px; padding: 8px 2px; font-size: 11px; }
.download-button svg { width: 14px; height: 14px; }
.document-status { padding: 28px 18px; text-align: center; color: #777; font-size: 13px; line-height: 1.8; }
.document-status:empty { display: none; }
.retry-button { display: block; margin: 12px auto 0; padding: 10px 18px; color: white; background: var(--dark); border: 0; }
.pdf-pages { padding: 32px; overflow: auto; max-height: 74vh; max-height: 74svh; scrollbar-color: #b7b5ad transparent; }
.pdf-page { position: relative; margin: 0 auto 25px; background: #fff; max-width: none; box-shadow: 0 2px 10px #00000006; }
.pdf-page canvas { display: block; width: 100%; height: 100%; }
.page-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #929292; font-size: 12px; }
.reader-footer { display: flex; justify-content: space-between; gap: 14px; padding: 23px 0; color: #888; font-size: 9px; }
.reader-footer > span:first-child { display: flex; align-items: center; gap: 7px; }
@media (max-width: 900px) {
  .gate-main { gap: 50px; }
  .intro h1 { font-size: clamp(48px, 8vw, 68px); }
  .intro-copy { font-size: 14px; }
}
@media (max-width: 600px) {
  .gate-header, .reader-header { width: calc(100% - 48px); padding: 22px 0 19px; }
  .brand { gap: 13px; }
  .brand-mark { font-size: 26px; }
  .brand-label { padding-left: 13px; font-size: 7px; letter-spacing: 1.3px; }
  .private-label { font-size: 7px; letter-spacing: .9px; gap: 6px; }
  .gate-main { width: calc(100% - 48px); display: block; padding: 46px 0 48px; }
  .eyebrow { font-size: 8px; }
  .intro h1 { font-size: clamp(48px, 16vw, 64px); letter-spacing: -2px; margin: 22px 0 22px; }
  .intro-copy { font-size: 14px; line-height: 1.8; }
  .intro-foot { margin-top: 28px; margin-bottom: 40px; font-size: 7px; gap: 12px; }
  .access-card { padding: 25px 0 0; }
  .access-card h2 { font-size: 25px; margin-top: 14px; }
  .card-copy { font-size: 11px; margin-bottom: 24px; }
  .password-field input { font-size: 16px; }
  .card-note { margin-top: 20px; font-size: 8px; }
  .gate-footer { width: calc(100% - 48px); font-size: 10px; padding: 19px 0 24px; }
  .gate-footer span:last-child { font-size: 7px; letter-spacing: 1.2px; }
  .reader-main { padding: 30px 14px 0; }
  .reader-heading { display: block; margin-bottom: 20px; padding: 0 7px; }
  .reader-heading h1 { font-size: 30px; margin-top: 10px; }
  .reader-heading h1 span { font-size: 12px; }
  .language-switch { display: inline-flex; margin-top: 23px; }
  .language-switch button { padding: 9px 16px; font-size: 10px; }
  .document-toolbar { padding: 10px 9px; gap: 3px; }
  .document-name { gap: 5px; font-size: 9px; }
  .page-count { font-size: 8px; }
  .document-actions { gap: 0; }
  .icon-button { min-width: 24px; }
  #zoom-label { min-width: 33px; font-size: 9px; }
  .toolbar-divider { margin: 0 4px; }
  .download-button { font-size: 9px; gap: 4px; }
  .download-button svg { width: 13px; }
  .pdf-pages { padding: 16px 10px; max-height: 70svh; }
  .reader-footer { padding: 20px 7px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media (max-width: 360px) {
  .document-name .page-count { display: none; }
  .document-actions .toolbar-divider { margin: 0 2px; }
  .brand-label { font-size: 6px; }
}
