/* Private Forensic – "case terminal" design.
   Black screen, phosphor green accents, white reading text. Fragment Mono for interface and headings,
   Inconsolata (variable) for reading. Everything readable without the effects; effects respect reduced motion. */

@font-face { font-family: "Fragment Mono"; src: url("/assets/fonts/fragment-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fragment Mono"; src: url("/assets/fonts/fragment-mono-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inconsolata"; src: url("/assets/fonts/inconsolata-var.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }

:root {
    --bg: #000;
    --panel: #050905;
    --panel-2: #081108;
    --line: #163a16;
    --line-2: #245c22;
    --green: #0bff00;
    --green-2: #6dff63;
    --green-glow: rgba(11, 255, 0, .35);
    --text: #e8ece8;
    --muted: #9aa69a;
    --dim: #5d6b5d;
    --amber: #ffb000;
    --red: #ff4d4d;
    --ui: "Fragment Mono", "SFMono-Regular", Menlo, Consolas, monospace;
    --read: "Inconsolata", "SFMono-Regular", Menlo, Consolas, monospace;
    --w: 1180px;
    --w-read: 74ch;
    --gutter: clamp(16px, 4vw, 40px);
    --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font: 400 17px/1.65 var(--read);
    font-variation-settings: "wdth" 100;
    -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 18px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-2); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
::selection { background: var(--green); color: #000; }
main { flex: 1; }
main:focus { outline: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--green); color: #000; padding: .5rem 1rem; font-family: var(--ui); }
.skip:focus { top: 1rem; }
.dim { color: var(--dim); }
.muted { color: var(--muted); }
.ok { color: var(--green); }
.err { color: var(--red); }
.warn { color: var(--amber); }
.small { font-size: .85em; }

/* CRT: faint scanlines and vignette over everything (never blocks clicks). */
.crt {
    position: fixed; inset: 0; z-index: 50; pointer-events: none;
    background:
        repeating-linear-gradient(to bottom, rgba(255,255,255,.022) 0 1px, transparent 1px 3px),
        radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
}
@media (min-width: 900px) {
    body::after {   /* thin phosphor frame around the screen, like the old site */
        content: ""; position: fixed; inset: 0; z-index: 51; pointer-events: none;
        border: 1px solid rgba(11, 255, 0, .28);
        box-shadow: inset 0 0 40px rgba(11, 255, 0, .04);
    }
}

/* ---------- Prompt pieces ---------- */
.prompt { font-family: var(--ui); white-space: nowrap; }
.prompt__user { color: var(--green); }
.prompt__path { color: #7aa7ff; }
.cmdline { font-family: var(--ui); font-size: .82rem; color: var(--muted); margin: 0 0 .75rem; overflow-wrap: anywhere; }
.cmdline .cmd, .statusline__cmd { color: var(--text); }
.out { font-family: var(--ui); }
.cursor {
    display: inline-block; width: .6em; height: 1.1em; margin-left: .15em; vertical-align: text-bottom;
    background: var(--green); box-shadow: 0 0 8px var(--green-glow);
    animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: linear-gradient(#000, #020502); position: relative; z-index: 5; }
.site-header__inner { max-width: var(--w); margin: 0 auto; padding: 18px var(--gutter) 12px; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.brand img { width: 190px; height: auto; }
.brand:hover img { filter: drop-shadow(0 0 6px var(--green-glow)); }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; font-family: var(--ui); font-size: .9rem; }
.nav a { color: var(--text); text-decoration: none; padding: .3rem 0; border-bottom: 1px solid transparent; }
.nav a span { color: var(--dim); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }
.nav__search span { color: var(--muted) !important; }

.adminbar, .previewbar { font-family: var(--ui); font-size: .8rem; display: flex; gap: 1.2rem; flex-wrap: wrap; padding: .4rem var(--gutter); position: relative; z-index: 60; }
.adminbar { background: #111; color: var(--muted); border-bottom: 1px solid #222; }
.adminbar a { color: var(--green); }
.previewbar { background: var(--amber); color: #000; font-weight: 700; }

/* ---------- Layout ---------- */
.page { max-width: var(--w); margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--gutter) 72px; }
.page--narrow { max-width: 820px; }
.page--doc { max-width: 900px; }
.page-head { margin-bottom: 2rem; }
.page-title { font: 400 clamp(1.9rem, 4.5vw, 3rem)/1.1 var(--ui); margin: 0 0 .5rem; letter-spacing: -.01em; color: #fff; }
.page-sub { font-family: var(--ui); font-size: .85rem; margin: 0; }

/* ---------- Terminal window ---------- */
.term, .channel { border: 1px solid var(--line-2); background: var(--panel); box-shadow: 0 0 0 1px #000, 0 20px 60px rgba(0,0,0,.6), 0 0 60px rgba(11,255,0,.05); }
.term__bar { display: flex; align-items: center; gap: .8rem; padding: .5rem .8rem; border-bottom: 1px solid var(--line); background: #030603; font-family: var(--ui); font-size: .75rem; color: var(--muted); }
.term__dots { display: inline-flex; gap: 6px; }
.term__dots i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-2); display: block; }
.term__dots i:first-child { background: var(--green); border-color: var(--green); box-shadow: 0 0 6px var(--green-glow); }
.term__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Home ---------- */
.term--home { max-width: var(--w); margin: clamp(16px, 4vw, 48px) auto; }
@media (max-width: 1260px) { .term--home { margin-left: var(--gutter); margin-right: var(--gutter); } }
.term__body { padding: clamp(18px, 3.5vw, 40px); font-family: var(--ui); position: relative; overflow: hidden; }
.boot { margin: 0 0 .6rem; font-size: .85rem; }
.welcome { margin: 0; font-size: clamp(1rem, 2vw, 1.3rem); line-height: 1.55; color: var(--green); text-shadow: 0 0 10px var(--green-glow); }
.welcome .prompt { font-size: .8em; margin-right: .5em; text-shadow: none; }
.welcome .prompt__user { color: #fff; }
.home-mark { position: absolute; right: -4%; top: 34%; width: 62%; opacity: .07; pointer-events: none; }
.home-mark img { width: 100%; height: auto; }
@media (max-width: 700px) { .home-mark { top: auto; bottom: 8%; width: 110%; right: -20%; opacity: .06; } }
.home-intro { position: relative; max-width: 62ch; margin-top: clamp(28px, 5vw, 56px); color: var(--text); font-family: var(--read); font-size: 1.05rem; }
.ls, .console, .cmds { position: relative; }
.home-intro p { margin: 0 0 1em; }

.ls { margin-top: 2.2rem; }
.ls__list { list-style: none; margin: 0; padding: 0; border-top: 1px dashed var(--line); }
.ls__row a {
    display: grid; grid-template-columns: 3ch 12ch 11ch 1fr; gap: 1rem; align-items: baseline;
    padding: .7rem .5rem; text-decoration: none; color: var(--text); border-bottom: 1px dashed var(--line);
}
.ls__row a:hover, .ls__row a:focus-visible { background: rgba(11,255,0,.06); color: #fff; }
.ls__row a:hover .ls__title { color: var(--green); }
.ls__n { color: var(--dim); }
.ls__id { color: var(--green); }
.ls__date { color: var(--muted); font-size: .9em; }
@media (max-width: 700px) {
    .ls__row a { grid-template-columns: auto 1fr; gap: .1rem .8rem; }
    .ls__n { display: none; }
    .ls__date { text-align: right; }
    .ls__title { grid-column: 1 / -1; }
}

.cmds { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.cmdbtn {
    display: inline-flex; align-items: center; gap: .1em; min-height: 44px; padding: .55rem 1.1rem;
    font: 400 .92rem var(--ui); color: var(--green); text-decoration: none; cursor: pointer;
    background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius);
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.cmdbtn span { color: var(--dim); }
.cmdbtn:hover, .cmdbtn:focus-visible { background: var(--green); color: #000; border-color: var(--green); box-shadow: 0 0 18px var(--green-glow); }
.cmdbtn:hover span { color: #000; }
.cmdbtn--hot { border-color: var(--green); box-shadow: inset 0 0 0 1px rgba(11,255,0,.15); }

.console { margin-top: 2rem; border-top: 1px dashed var(--line); padding-top: 1rem; }
.console__out { font-size: .9rem; color: var(--text); max-height: 40vh; overflow: auto; }
.console__out p { margin: .15rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.console__out a { color: var(--green); }
.console__form { display: flex; align-items: center; gap: .6rem; }
.console__form label { flex: none; font-size: .9rem; }
.console__form input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; caret-color: var(--green); font-family: var(--ui); font-size: 1rem; padding: .4rem 0; }
.console__form input:focus { outline: none; }
.console__form:focus-within { box-shadow: 0 1px 0 var(--green); }

/* ---------- Case files ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; font-family: var(--ui); font-size: .85rem; }
.chips a { border: 1px solid var(--line-2); padding: .3rem .7rem; text-decoration: none; color: var(--text); }
.chips a[aria-current="page"], .chips a:hover { border-color: var(--green); color: var(--green); }

.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(18px, 2.5vw, 30px); }
@media (max-width: 360px) { .cases { grid-template-columns: 1fr; } }
.case { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s, box-shadow .2s, transform .2s; }
.case:hover, .case:focus-within { border-color: var(--line-2); box-shadow: 0 0 0 1px rgba(11,255,0,.15), 0 0 28px rgba(11,255,0,.07); }
.case__link { color: inherit; text-decoration: none; display: block; flex: 1; }
.case__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #020402; border-bottom: 1px solid var(--line); }
.case__img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.75); transition: filter .4s, transform .6s; }
.case__media::after {   /* green evidence-photo tint that lifts on hover */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(rgba(11,255,0,.22), rgba(0,40,0,.35)); mix-blend-mode: color; transition: opacity .4s;
}
.case__media::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: repeating-linear-gradient(to bottom, rgba(0,0,0,.18) 0 1px, transparent 1px 3px);
}
.case:hover .case__img, .case:focus-within .case__img { filter: none; transform: scale(1.02); }
.case:hover .case__media::after, .case:focus-within .case__media::after { opacity: 0; }
.case__noimg { height: 100%; display: grid; place-items: center; font: 4rem var(--ui); color: var(--line-2); }
.case__id { position: absolute; z-index: 2; left: .6rem; top: .6rem; background: #000; color: var(--green); border: 1px solid var(--green); font: .72rem var(--ui); padding: .15rem .45rem; letter-spacing: .04em; }
.case__body { padding: 1rem 1.1rem .4rem; }
.case__meta { font: .75rem var(--ui); color: var(--muted); margin: 0 0 .5rem; }
.case__title { font: 400 1.12rem/1.35 var(--ui); margin: 0 0 .6rem; color: #fff; }
.case__link:hover .case__title { color: var(--green); }
.case__excerpt { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem .5rem; padding: .8rem 1.1rem 1.1rem; margin: 0; font: .75rem var(--ui); }
.tags a { color: var(--muted); text-decoration: none; border: 1px solid var(--line); padding: .1rem .45rem; }
.tags a:hover { color: var(--green); border-color: var(--green); }
.tags--cloud { padding: 0; font-size: .85rem; gap: .5rem; }

.pager { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2.5rem; font-family: var(--ui); }
.empty { border: 1px dashed var(--line-2); padding: 2rem; font-family: var(--ui); }

/* ---------- Report (post) ---------- */
.report { max-width: var(--w); margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--gutter) 72px; }
.report__head { max-width: 920px; }
.report__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin: 0 0 1.4rem; font: .78rem var(--ui); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .55rem 0; }
.report__meta div { display: flex; gap: .5rem; }
.report__meta dt { color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.report__meta dd { margin: 0; color: var(--green); }
.report__title { font: 400 clamp(1.8rem, 4.6vw, 3.1rem)/1.12 var(--ui); margin: 0 0 1rem; color: #fff; letter-spacing: -.015em; }
.report__lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--green); line-height: 1.55; margin: 0 0 2rem; max-width: 70ch; }
.report__cover { margin: 0 0 clamp(28px, 5vw, 48px); border: 1px solid var(--line); position: relative; }
.report__cover img { width: 100%; max-height: 560px; object-fit: cover; }
.report__cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0,0,0,.12) 0 1px, transparent 1px 3px); }
.report__layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1100px) {
    .report__layout { grid-template-columns: 240px minmax(0, var(--w-read)); justify-content: start; gap: 56px; }
    .toc { position: sticky; top: 1.5rem; align-self: start; }
}
.toc { font: .8rem/1.5 var(--ui); border-left: 1px solid var(--line); padding-left: 1rem; }
.toc__title { margin: 0 0 .6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: .35rem 0; }
.toc__l3 { padding-left: .9rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover, .toc a.is-current { color: var(--green); }
@media (max-width: 1099px) { .toc { display: none; } }

.prose { max-width: var(--w-read); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose h2 { font: 400 1.45rem/1.3 var(--ui); color: var(--green); margin: 2.2em 0 .7em; }
.prose h2::before { content: "## "; color: var(--dim); }
.prose h3 { font: 400 1.15rem/1.35 var(--ui); color: #fff; margin: 1.8em 0 .6em; }
.prose h3::before { content: "### "; color: var(--dim); }
.prose h4 { font: 400 1rem var(--ui); color: var(--muted); margin: 1.5em 0 .5em; text-transform: uppercase; letter-spacing: .06em; }
.prose strong { color: #fff; font-weight: 700; }
.prose a { color: var(--green); }
.prose a.ext::after { content: " ↗"; font-size: .8em; color: var(--dim); }
.prose ul { list-style: none; padding-left: 1.4em; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: ">"; position: absolute; left: -1.3em; color: var(--green); }
.prose ol { padding-left: 1.6em; }
.prose ol li::marker { color: var(--green); font-family: var(--ui); }
.prose li { margin: .35em 0; }
.prose blockquote { margin: 1.6em 0; padding: .4em 0 .4em 1.2em; border-left: 2px solid var(--green); color: #fff; background: linear-gradient(90deg, rgba(11,255,0,.06), transparent 60%); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-family: var(--ui); font-size: .88em; background: var(--panel-2); border: 1px solid var(--line); padding: .05em .35em; }
.prose pre { background: var(--panel); border: 1px solid var(--line); padding: 1rem; overflow-x: auto; font-size: .88rem; }
.prose pre code { border: 0; padding: 0; background: none; }
.prose hr { border: 0; border-top: 1px dashed var(--line-2); margin: 2.5em 0; }
.prose figure { margin: 2em 0; }
.prose figure img { border: 1px solid var(--line); }
.prose figcaption { font: .8rem var(--ui); color: var(--muted); margin-top: .5rem; }
.prose figcaption::before { content: "fig: "; color: var(--dim); }
.prose img { height: auto; }
.prose--tight p { margin-bottom: .7em; }
.box { margin: 1.8em 0; padding: 1em 1.2em; border: 1px solid var(--line-2); background: var(--panel); }
.box--warning { border-color: var(--amber); }
.box__title { font-family: var(--ui); color: var(--green); margin: 0 0 .4em !important; }
.box--warning .box__title { color: var(--amber); }
.eof { font: .8rem var(--ui); margin-top: 3rem !important; }

.report__foot { max-width: 920px; margin-top: 2.5rem; }
@media (min-width: 1100px) { .report__foot { margin-left: 296px; max-width: var(--w-read); } }
.report__foot .tags { padding: 0; margin-bottom: 2rem; }
.callout { border: 1px solid var(--line-2); background: var(--panel); padding: 1.2rem 1.4rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.callout p { margin: 0; flex: 1 1 320px; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.prevnext a { display: flex; flex-direction: column; gap: .3rem; padding: 1rem; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-family: var(--ui); font-size: .9rem; }
.prevnext a:hover { border-color: var(--green); color: var(--green); }
.prevnext__prev { grid-column: 2; text-align: right; }
.prevnext span:first-child { font-size: .75rem; }
@media (max-width: 640px) { .prevnext { grid-template-columns: 1fr; } .prevnext__prev { grid-column: auto; } }

/* ---------- Get Help ---------- */
.channel__body { padding: clamp(18px, 4vw, 36px); }
.assure { list-style: none; margin: 1.2rem 0 1.6rem; padding: 0; font: .85rem/1.9 var(--ui); color: var(--muted); }
.assure .ok { margin-right: .5rem; }
.helpform__label { display: block; font-family: var(--ui); color: var(--green); margin-bottom: .4rem; }
.helpform__row { display: flex; gap: .6rem; flex-wrap: wrap; }
.helpform input[type="email"] {
    flex: 1 1 260px; min-width: 0; min-height: 48px; padding: .6rem .9rem; background: #000; color: #fff;
    border: 1px solid var(--line-2); border-radius: var(--radius); font-family: var(--ui); font-size: 1rem; caret-color: var(--green);
}
.helpform input[type="email"]:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 1px var(--green), 0 0 18px var(--green-glow); }
.helpform .cmdbtn { min-height: 48px; }
.helpform p { margin: .7rem 0 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin-top: 1rem; min-height: 65px; }
.alert { border: 1px solid var(--red); padding: .7rem 1rem; font-family: var(--ui); font-size: .9rem; }
.danger { margin-top: 2rem; border-left: 2px solid var(--amber); padding: .6rem 1rem; font-size: .95rem; color: var(--muted); }
.danger strong { color: #fff; }

/* ---------- Search ---------- */
.grep { display: flex; align-items: center; gap: .7rem; margin-top: 1.4rem; border: 1px solid var(--line-2); padding: .4rem .5rem .4rem .9rem; background: #000; max-width: 720px; }
.grep:focus-within { border-color: var(--green); box-shadow: 0 0 18px var(--green-glow); }
.grep__p { font-family: var(--ui); color: var(--green); }
.grep input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font-family: var(--ui); font-size: 1rem; padding: .5rem 0; }
.grep input:focus { outline: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #020402; font-family: var(--ui); font-size: .82rem; }
.site-footer__inner { max-width: var(--w); margin: 0 auto; padding: 22px var(--gutter) 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 2rem; }
.site-footer__sig { margin: 0; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.site-footer nav a { color: var(--text); text-decoration: none; }
.site-footer nav a:hover { color: var(--green); }
.site-footer__eof { margin: 0; flex-basis: 100%; }

.maint-logo { width: 240px; margin-bottom: 2.5rem; }
.page-maintenance main { padding-top: 12vh; }

/* ---------- Phones ---------- */
@media (max-width: 560px) {
    .site-header__inner { padding-top: 14px; }
    .brand img { width: 150px; }
    .nav { width: 100%; gap: .2rem 1rem; font-size: .85rem; }
    .cmds .cmdbtn { flex: 1 1 calc(50% - .6rem); justify-content: center; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .cursor { opacity: 1; }
}

/* ---------- Secure share ---------- */
.files { list-style: none; margin: 1rem 0; padding: 0; border-top: 1px dashed var(--line); }
.files__row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); font-family: var(--ui); font-size: .9rem; }
.files__name { flex: 1 1 220px; overflow-wrap: anywhere; color: #fff; }
.files__row .cmdbtn { min-height: 38px; padding: .35rem .8rem; font-size: .82rem; }
.dropzone { margin-top: 1.5rem; padding: 1.2rem; border: 1px dashed var(--line-2); font-family: var(--ui); }
.dropzone.is-drop { border-color: var(--green); background: rgba(11,255,0,.05); }
.dropzone p { margin: 0 0 .7rem; }
.viewer { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.94); display: flex; flex-direction: column; }
.viewer[hidden] { display: none; }
.viewer__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem var(--gutter); border-bottom: 1px solid var(--line); font-family: var(--ui); font-size: .85rem; }
.viewer__body { flex: 1; overflow: auto; display: grid; place-items: center; padding: 1rem; position: relative; user-select: none; -webkit-user-select: none; }
.viewer__body img, .viewer__body video { max-width: 100%; max-height: calc(100vh - 90px); object-fit: contain; -webkit-user-drag: none; }
.viewer__body iframe { width: min(1000px, 100%); height: calc(100vh - 100px); border: 0; background: #fff; }
.viewer__body pre { width: min(1000px, 100%); white-space: pre-wrap; color: var(--text); }
.viewer--mark .viewer__body::after {   /* watermark over the viewed file */
    content: attr(data-mark); position: absolute; inset: 0; pointer-events: none;
    display: grid; place-items: center; text-align: center; font: 700 clamp(1rem, 3vw, 2rem) var(--ui);
    color: rgba(255,255,255,.14); transform: rotate(-24deg); white-space: pre-wrap; padding: 2rem;
}
@media print { .viewer { display: none !important; } }
