/* File page: every format opens. Documents, slides, photos, sheets, audio, video, text, and a clean fallback. */
.stage { position: relative; }
.zoomable { transform: scale(var(--z, 1)); transform-origin: top center; transition: transform 0.18s var(--ease); }
.photo.portrait { width: min(440px, 100%); }
.stage-note { margin: 0; font-size: 12px; color: var(--faint); }
.pdf-frame { width: min(900px, 100%); height: calc(100vh - 170px); border: 0; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 48px -18px rgb(15 18 30 / 0.25); }
.video { width: min(900px, 100%); border-radius: 10px; background: #000; box-shadow: 0 18px 48px -18px rgb(15 18 30 / 0.4); }
.text-doc pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: 12.5px/1.65 var(--mono); color: var(--ink-2); }
.logo-doc { display: grid; place-items: center; min-height: 460px; }
.logo-doc .th-logo { background: none; }
.logo-doc .th-logo .lm { width: 160px; height: 160px; border-radius: 36px; font-size: 92px; }
.logo-doc img, .th-logo img { max-width: 60%; max-height: 70%; object-fit: contain; }
.sheet-tabs { display: flex; gap: 2px; margin-bottom: 14px; }
.sheet-tabs span { padding: 6px 12px; border-radius: 7px; font-size: 12px; font-weight: 550; color: var(--muted); }
.sheet-tabs span.on { background: var(--green-soft); color: #0b7a3b; }
.sheet-doc .th-sheet span.t { font-weight: 700; background: #fafbfc; }
.sheet-doc .th-sheet span.r { color: var(--red); }
.audio-doc { padding: 28px 32px 24px !important; }
.audio-head { display: flex; align-items: center; gap: 16px; }
.audio-head b { display: block; font-size: 15px; font-weight: 600; }
.audio-head span { font-size: 12.5px; color: var(--muted); }
.play { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 6px 16px rgb(61 68 229 / 0.3); }
.play svg { width: 20px; height: 20px; fill: currentColor; }
.wave-big { display: flex; align-items: center; gap: 3px; height: 72px; margin-top: 22px; }
.wave-big i { flex: 1; border-radius: 3px; background: var(--line-2); transition: background 0.3s; }
.wave-big.playing i:nth-child(-n + 4) { background: var(--accent); }
.audio-time { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.no-preview { width: min(460px, 100%); margin-top: 8vh; text-align: center; padding: 40px 32px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-card); }
.no-preview .ft.xl { width: 56px; height: 67px; margin: 0 auto 14px; display: block; }
.no-preview h3 { margin: 0; font: 600 16px/1.35 var(--font-display); word-break: break-word; }
.no-preview p { margin: 6px 0 0; font-size: 13px; }
.th-file { position: absolute; inset: 0; display: grid; place-items: center; }
.ft.lg { width: 40px; height: 48px; }
.zoom-bar { position: sticky; bottom: 14px; margin-top: auto; display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 10px; background: var(--surface); box-shadow: var(--sh-pop); align-self: center; z-index: 5; }
.zoom-bar button { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: var(--ink-2); }
.zoom-bar button:hover { background: var(--hover); color: var(--ink); }
.zoom-bar span.num { min-width: 46px; text-align: center; font-size: 12px; font-weight: 550; color: var(--ink-2); }
.zoom-bar .sep { width: 1px; height: 18px; background: var(--line); margin: 0 3px; }
.file-side .title { padding: 16px 16px 0; }
.file-side .title h3 { margin: 0; font: 600 15px/1.3 var(--font-display); letter-spacing: -0.015em; word-break: break-word; }
.file-side .title .row { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.file-side .desc { margin: 12px 16px 0; padding: 9px 11px; border-radius: var(--r); background: var(--sunken); font-size: 12.5px; color: var(--ink-2); line-height: 1.5; outline: none; }
.stage .md-doc h2 { font: 700 26px/1.15 var(--font-display); letter-spacing: -0.025em; margin: 0 0 12px; }
.stage .md-doc h3 { font: 650 17px/1.3 var(--font-display); margin: 24px 0 8px; }
.stage .md-doc h4 { font: 650 14px/1.3 var(--font-display); margin: 18px 0 6px; }
.stage .md-doc p, .md-doc li { color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.stage .md-doc ul, .md-doc ol { padding-left: 20px; margin: 0 0 12px; }
.stage .md-doc code { font: 12.5px var(--mono); background: var(--hover); padding: 1px 5px; border-radius: 4px; }
.stage .md-doc pre { background: #0e1018; color: #e6e8f0; padding: 14px 16px; border-radius: 8px; overflow-x: auto; }
.stage .md-doc pre code { background: none; color: inherit; padding: 0; }
.stage .md-doc blockquote { margin: 12px 0; padding-left: 14px; border-left: 3px solid var(--accent-line); color: var(--ink-2); }
.stage .md-doc a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
