:root {
    color-scheme: light;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #183e4b;
    background: #e9f2f3;
    font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid #0088a3; outline-offset: 4px; }
.reader-skip { position: fixed; top: -80px; left: 16px; padding: 12px 20px; background: white; z-index: 10; }
.reader-skip:focus { top: 8px; }
.reader-header {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    min-height: 86px; padding: 16px 32px; background: #ffffffed; border-bottom: 1px solid #d7e5e8;
}
.reader-brand { display: flex; align-items: center; flex-shrink: 0; }
.reader-brand img { object-fit: contain; width: 144px; height: 48px; }
.reader-heading { margin-right: auto; border-left: 1px solid #dce7e9; padding-left: 24px; }
.reader-eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #087e97; }
.reader-heading h1 { margin: 5px 0 0; font-size: 18px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.reader-actions { display: flex; align-items: center; gap: 10px; }
.reader-action { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 17px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .16s ease, box-shadow .16s ease; }
.reader-action svg, .reader-document-label svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.reader-action-secondary { background: white; border-color: #d5e3e7; }
.reader-action-secondary:hover { background: #edf6f8; }
.reader-action-primary { background: #087d98; color: white; box-shadow: 0 3px 8px #0b708318; }
.reader-action-primary:hover { background: #07677d; }
.reader-stage {
    flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(620px, 860px) minmax(0, 1fr);
    gap: 24px; padding: 24px 28px; background: radial-gradient(ellipse at 50% 0, #f8fbfb, #e5eff1 80%);
}
.reader-document { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #ffffff; border-radius: 14px; background: #fff; box-shadow: 0 18px 52px #193e4b1b, 0 2px 8px #193e4b0a; }
.reader-document-label { display: flex; align-items: center; gap: 9px; padding: 12px 18px; background: #fff; color: #57747d; font-size: 12px; min-height: 42px; border-bottom: 1px solid #e5edef; }
.reader-document-label svg { color: #087d98; width: 16px; height: 16px; }
.reader-document-label > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-document-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.reader-file-type { font-size: 9px; letter-spacing: .08em; font-weight: 700; background: #edf5f7; color: #087d98; padding: 4px 7px; border-radius: 5px; white-space: nowrap; }
.reader-tool { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #d9e7ea; border-radius: 8px; padding: 7px 9px; background: #fff; color: #276171; font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer; }
.reader-tool:hover, .reader-tool[aria-pressed="true"] { background: #edf7f8; border-color: #a6d1da; }
.reader-document:fullscreen { width: 100vw; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
.reader-document-expanded .reader-header, .reader-document-expanded .reader-scene { display: none; }
.reader-document-expanded .reader-stage { display: flex; padding: 0; }
.reader-document-expanded .reader-document { flex: 1; border: 0; border-radius: 0; }
.reader-pdf { display: block; width: 100%; flex: 1; min-height: 0; border: 0; background: #eef3f4; overflow: auto; overscroll-behavior: contain; scrollbar-color: #b2c9ce transparent; scrollbar-width: thin; }
.reader-pages { padding: 16px; }
.reader-page { position: relative; margin: 0 auto 16px; background: #fff; box-shadow: 0 2px 8px #163d4914; }
.reader-page:last-child { margin-bottom: 0; }
.reader-page canvas { display: block; width: 100%; height: 100%; }
.reader-page .textLayer { position: absolute; inset: 0; }
.reader-page-links { position: absolute; inset: 0; pointer-events: none; }
.reader-page-links a { position: absolute; pointer-events: auto; }
.reader-page-links a:hover { background: #00a3c418; }
.reader-loading { padding: 32px; text-align: center; color: #57747d; font-size: 14px; }
.reader-loading[hidden], .reader-fallback[hidden] { display: none; }
.reader-fallback { padding: 40px 24px; text-align: center; line-height: 1.6; }
.reader-fallback h2 { font-size: 22px; }
.reader-scene { position: relative; min-width: 0; overflow: hidden; border-radius: 20px; isolation: isolate; background: #e6eff1; }
.reader-scene-photo, .reader-scene-wash { position: absolute; inset: 0; }
.reader-scene-photo { background-size: cover; background-repeat: no-repeat; opacity: .32; filter: saturate(.5); }
.reader-scene-care .reader-scene-photo { background-image: url('/img/license-reader/medical-care.webp'); background-position: 48% center; }
.reader-scene-clinic .reader-scene-photo { background-image: url('/img/license-reader/medical-clinic.webp'); background-position: 61% center; }
.reader-scene-wash { background: linear-gradient(180deg, #edf4f520 12%, #e1ecef80 100%); }
.reader-scene-care { border-top-right-radius: 70px; }
.reader-scene-clinic { border-bottom-left-radius: 70px; }
.reader-scene-clinic .reader-scene-wash { background: linear-gradient(180deg, #edf4f520 10%, #e1ecef80 100%); }
.reader-scene-orbit { position: absolute; width: 270px; height: 270px; border: 1px solid #ffffff30; border-radius: 50%; left: -125px; bottom: -105px; box-shadow: 0 0 0 25px #ffffff06, 0 0 0 65px #ffffff05; }
.reader-scene-clinic .reader-scene-orbit { left: auto; right: -170px; bottom: 15%; }
.reader-scene-copy { position: absolute; bottom: 38px; left: 26px; right: 22px; color: #607d85; opacity: .75; }
.reader-scene-kicker { font-size: 9px; line-height: 1.5; letter-spacing: .17em; font-weight: 600; color: #607d85; }
.reader-scene-copy p { font-weight: 350; font-size: clamp(17px, 1.2vw, 22px); line-height: 1.3; letter-spacing: -.025em; margin: 14px 0 20px; }
.reader-scene-rule { display: block; width: 32px; height: 2px; background: #b5cdd2; margin-bottom: 16px; }
.reader-scene-caption { font-size: 11px; line-height: 1.6; color: #607d85; }
@media (min-width: 1700px) {
    .reader-stage { grid-template-columns: minmax(0, 1fr) minmax(860px, 980px) minmax(0, 1fr); gap: 32px; padding: 28px 40px; }
    .reader-scene-copy { left: 36px; bottom: 48px; }
}
@media (max-width: 1199px) {
    .reader-header { padding: 12px 20px; min-height: 76px; gap: 18px; }
    .reader-heading { padding-left: 18px; }
    .reader-stage { gap: 16px; padding: 18px 20px; grid-template-columns: minmax(0, 1fr) minmax(580px, 72%) minmax(0, 1fr); }
    .reader-scene-copy { left: 14px; right: 12px; bottom: 28px; }
    .reader-scene-copy p { font-size: 19px; }
    .reader-scene-caption { display: none; }
}
@media (max-width: 900px) {
    .reader-heading h1 { font-size: 15px; }
    .reader-stage { display: flex; padding: 16px; }
    .reader-scene { display: none; }
    .reader-document { flex: 1; }
    .reader-action-secondary { display: none; }
}
@media (max-width: 767px), (max-width: 1024px) and (pointer: coarse) {
    .reader-header, .reader-document-label, .reader-scene { display: none; }
    .reader-stage { padding: 0; background: white; }
    .reader-document { border: 0; border-radius: 0; box-shadow: none; }
    .reader-pages { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .reader-action { transition: none; }
}
