.pdf-main { max-width: 1440px; }
.pdf-site-logo h1 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.pdf-site-logo h1 span { color: var(--primary-color); }
.pdf-site-logo a { color: inherit; text-decoration: none; }
.pdf-intro { margin-bottom: 1.25rem; }
.pdf-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.pdf-heading h1 { margin: .35rem 0 .65rem; font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.2; }
.pdf-heading h1 i { color: var(--primary-color); margin-inline-end: .65rem; }
.pdf-heading .tool-intro { margin-bottom: 0; }
.pdf-count { flex-shrink: 0; padding: .55rem .95rem; border-radius: 999px; color: var(--primary-hover); background: var(--primary-soft); font-weight: 700; }
.pdf-language-note { margin-top: 1.1rem; color: var(--light-text); font-size: .9rem; }
.pdf-language-note i { margin-inline-end: .5rem; }
.pdf-workspace { border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; background: white; box-shadow: var(--box-shadow); scroll-margin-top: 80px; }
.pdf-workspace-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.2rem; border-bottom: 1px solid var(--border-color); }
.pdf-workspace-toolbar h2 { margin: 0; font-size: 1rem; }
.pdf-workspace-toolbar button { font-size: .86rem; }
#pdf-app { width: 100%; min-height: 650px; color-scheme: light; }
.pdf-loading { padding: 1rem; color: var(--light-text); text-align: center; }
.pdf-credit { margin: .85rem 0 1.6rem; color: var(--light-text); text-align: center; font-size: .8rem; }
.pdf-credit a { color: var(--light-text); text-decoration: underline; text-underline-offset: 3px; }
.pdf-workspace.pdf-expanded { position: fixed; inset: 12px; z-index: 2000; display: flex; flex-direction: column; }
.pdf-expanded .pdf-workspace-toolbar { flex-shrink: 0; }
.pdf-expanded #pdf-app { flex: 1; overflow: auto; min-height: 0; }
body.pdf-workspace-open { overflow: hidden; }
@media (max-width: 640px) {
    .pdf-main { padding-inline: .65rem; }
    .pdf-heading { align-items: flex-start; gap: .75rem; }
    .pdf-count { padding: .4rem .65rem; font-size: .8rem; white-space: nowrap; }
    .pdf-workspace-toolbar { padding: .75rem; }
    .pdf-workspace-toolbar button { padding: .5rem .6rem; }
    .pdf-workspace.pdf-expanded { inset: 0; border-radius: 0; }
}
