/* 5 November 2026 reader refinement. Keep text and native image proportions stable. */
.frame-act-wall{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
.frame-tile{display:block;position:relative;overflow:hidden;aspect-ratio:var(--frame-ratio);border:1px solid #35515c;background:#051116;transform:none!important;clip-path:none!important}
.frame-tile-image{width:100%;height:100%;aspect-ratio:var(--frame-ratio);overflow:hidden;clip-path:none!important}.frame-tile-image>img{width:100%;height:100%;object-fit:contain;transform:none!important;filter:none!important}
.frame-tile-caption{position:absolute;inset:auto 0 0;z-index:2;display:block;padding:44px 18px 16px;border:0;background:linear-gradient(transparent,#030b10db 38%,#030b10f5);opacity:0;transform:translateY(8px);transition:opacity .2s,transform .2s;pointer-events:none}
.frame-tile-caption time{display:block;color:#f8b6bc;font-size:12px;margin-bottom:6px}.frame-tile-caption h2{font-size:18px;line-height:1.22;margin:0;color:#e8f9fb;text-shadow:0 1px 3px #000}.frame-tile-caption>span{display:block;margin-top:9px;color:#6de8f2;font-size:11px}
.frame-tile:is(:hover,:focus-visible) .frame-tile-caption{opacity:1;transform:none}.frame-tile:focus-visible{outline:2px solid #fff000;outline-offset:3px}.frame-tile-number{z-index:3}
.entry-section-panel{margin:0!important;min-height:48px;background:#07151df5}.entry-section-panel>.entry-section-nav{min-height:48px;align-items:center}.entry-section-nav button{min-height:44px;padding-block:12px!important}
.chronicle-years{overflow-y:auto;max-height:var(--chronicle-available,calc(100dvh - var(--header-height) - var(--reader-toolbar-height,56px) - 44px));overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-gutter:stable}
.timeline-year-track{min-height:50px}.timeline-year-track a{font-size:15px!important;min-height:48px;min-width:55px;flex-basis:55px;padding:13px 8px!important;display:flex;align-items:center;justify-content:center;line-height:1.2}
.timeline-stream .stream-document-host{position:relative;isolation:isolate;min-width:0}.timeline-stream .stream-document-host .viewport-surface{max-width:100%}.timeline-stream .stream-reader:after{inset:0 auto 0 -1px;width:1px;height:auto;pointer-events:none}.timeline-stream .timeline-shell-scar{z-index:-1}.timeline-stream .stream-reader .site-image{max-width:100%}
.site-atmosphere[data-author-footage=cyberspace] .author-reference{display:none!important}.site-atmosphere[data-author-footage=cyberspace] .atmosphere-still-cyberspace{opacity:var(--footage-blue-strength)!important}
@media(max-width:1000px){.frame-act-wall{grid-template-columns:repeat(2,minmax(0,1fr))}.chronicle-years{overscroll-behavior:contain;touch-action:pan-x;max-height:none}}
@media(max-width:760px){.timeline-year-track a{font-size:14px!important;min-width:56px;flex-basis:56px;min-height:46px}.frame-act-wall{gap:9px}.frame-tile-caption h2{font-size:16px}.entry-section-nav button{font-size:13px!important;white-space:nowrap}}
@media(max-width:560px){.frame-act-wall{grid-template-columns:minmax(0,1fr)}}
@media(hover:none){.frame-tile-caption{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.frame-tile-caption{transition:none}}

.editor-note>p{white-space:pre-line}

@media(min-width:761px){#reader-workspace.entry-dossier.terminal-document .person-data>.facts{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}html[lang=ru] #reader-workspace.entry-dossier.terminal-document .person-data>.facts{grid-template-columns:repeat(auto-fit,minmax(205px,1fr))}}
@media(min-width:1001px){:is(#reader-workspace,.timeline-document).terminal-document .chronicle-years{max-height:var(--chronicle-available,calc(100dvh - var(--header-height) - var(--reader-toolbar-height,56px) - 44px))}}
@media(max-width:1000px){.frame-tile-caption{padding:30px 12px 12px}.frame-tile-caption h2{font-size:16px;line-height:1.25}.frame-tile-caption>span{display:none}}
@media(max-width:760px){.frame-act-wall{grid-template-columns:minmax(0,1fr)}}

/* Frame photographs own their contour. Native proportions determine both axes. */
.entry-frames .gallery-photo>.frame-image,.stream-frame .frame-image{width:100%;max-width:100%;margin:0;aspect-ratio:auto;overflow:visible}
.frame-image .image-open,.stream-frame .frame-image .image-open{display:block;width:100%;height:auto;aspect-ratio:var(--image-ratio);padding:0;border:0;background:none!important}
.frame-image .image-open.ui-framed{--cut-tl:0;--cut-tr:0;--cut-br:0;--cut-bl:0;--frame-color:#e87e8d;clip-path:none!important;overflow:visible}
.frame-image .image-open>img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;object-position:center;clip-path:none}

/* Every Timeline document uses the same uncropped media contour. */
.stream-reader .image-open.ui-framed{--cut-tl:0;--cut-tr:0;--cut-br:0;--cut-bl:0;--frame-color:var(--file-accent);width:100%;height:auto;aspect-ratio:var(--image-ratio);padding:0;border:0;clip-path:none!important;overflow:visible}
.stream-reader .image-open.ui-framed>img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;object-position:center;clip-path:none}
.stream-reader-map .atlas-visual.ui-framed{--cut-tl:0;--cut-tr:0;--cut-br:0;--cut-bl:0;--frame-color:var(--file-accent)}
.stream-reader .source-image-unavailable{border-color:var(--file-accent)}
