/* Funkturm Transfer – web pages in the look of the Mac notch app. */
:root {
  --bg-top: #1d1b3a;
  --bg-bottom: #0b0b14;
  --notch: #000;
  --pane: #121214;
  --line: rgba(255, 255, 255, .08);
  --soft: rgba(255, 255, 255, .07);
  --text: #fff;
  --muted: rgba(255, 255, 255, .55);
  --indigo: #2c1c7f;
  --glow: #6e5cf0;
  --coral: #fb2f58;
  --accent: var(--coral);
  --ok: #4cd18a;
  --warn: #f5b04a;
  --danger: #ff6b7f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% 110%, rgba(110, 92, 240, .25), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(251, 47, 88, .10), transparent 60%),
    linear-gradient(var(--bg-top), var(--bg-bottom)) fixed;
  font: 15px/1.5 "Brockmann", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); overflow-wrap: anywhere; }
.error { color: var(--danger); font-size: 13.5px; margin: 0; }

/* ---------- the notch ---------- */
.notch {
  position: relative;
  width: min(620px, 100%);
  background: var(--notch);
  border-radius: 0 0 34px 34px;
  padding: 0 14px 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  animation: drop-in .5s cubic-bezier(.2, .9, .3, 1.2) both;
}
/* flared top corners like the hardware notch */
.notch::before, .notch::after {
  content: ""; position: absolute; top: 0; width: 16px; height: 16px;
  background: radial-gradient(circle at 100% 100%, transparent 15.5px, var(--notch) 16px);
}
.notch::before { left: -16px; transform: scaleX(-1); }
.notch::after { right: -16px; }
body.admin .notch { width: min(900px, 100%); }
@keyframes drop-in { from { transform: translateY(-40px); opacity: 0; } }
@media (max-width: 640px) { .notch { border-radius: 0 0 26px 26px; } .notch::before, .notch::after { display: none; } }

.notch-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 46px; padding: 0 6px; }
.brandmark { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 13.5px; }
.brandmark .funki { --s: 15px; }
.bar-right { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--muted); }
.bar-right form { margin: 0; }

.pane {
  position: relative;
  background: var(--pane);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  overflow: hidden;
}
.pane + .pane { margin-top: 10px; }
@media (max-width: 520px) { .pane { padding: 18px; } }

.stars::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 28% 72%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.4px 1.4px at 44% 14%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 62% 58%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.2px 1.2px at 78% 26%, rgba(255,255,255,.65), transparent),
    radial-gradient(1px 1px at 88% 80%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 6% 88%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.3px 1.3px at 52% 92%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 95% 45%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 35% 40%, rgba(255,255,255,.35), transparent);
  background-size: 260px 160px;
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }

.hero { text-align: center; padding-top: 26px; }
.hero .funki { margin: 0 auto 10px; }
h1 { font-size: 24px; line-height: 1.2; margin: 0 0 6px; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: 13.5px; margin: 0; }
.msg { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.msg::before { content: "Nachricht"; display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--soft); color: var(--text);
  font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s, transform .08s, opacity .15s;
}
.btn:hover { background: rgba(255, 255, 255, .12); }
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: #fff; color: #000; }
.btn.primary:hover { background: #e9e9ee; }
.btn.big { width: 100%; height: 46px; font-size: 15px; }
.btn.small { height: 28px; padding: 0 12px; font-size: 12px; }
.btn.ghost { background: none; color: var(--muted); }
.btn.ghost:hover { background: var(--soft); color: var(--text); }
.btn.danger { color: var(--danger); }
.btn[disabled] { opacity: .45; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--text); }
.link.small { font-size: 12.5px; }

.notice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--soft); font-size: 14px; }
.spinner { flex: none; width: 15px; height: 15px; border: 2px solid var(--line); border-top-color: var(--coral); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- file list ---------- */
.files { list-style: none; margin: 16px 0 0; padding: 0; }
.files li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.thumb {
  flex: none; width: 42px; height: 42px; border-radius: 11px; background: var(--soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: 9.5px; font-weight: 700; color: var(--muted); letter-spacing: .03em;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.k-video { color: #a597ff; } .thumb.k-image { color: #6fdcaa; } .thumb.k-audio { color: #ff8db0; }
.thumb.k-pdf { color: var(--coral); } .thumb.k-archive { color: var(--warn); }
.info { flex: 1; min-width: 0; }
.name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.size { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir { color: var(--muted); }
.actions { display: flex; gap: 2px; }
.icon-btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--muted); text-decoration: none; }
.icon-btn:hover { background: var(--soft); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.more { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

/* ---------- forms ---------- */
form.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
input, textarea, select {
  font: inherit; font-size: 15px; color: var(--text); width: 100%;
  background: var(--soft); border: 1px solid transparent; border-radius: 11px; padding: 10px 12px;
}
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, .35); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--glow); background: rgba(255, 255, 255, .1); }
textarea { resize: vertical; }
select option { background: #1b1b1f; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.form-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: 13.5px; align-self: end; padding-bottom: 10px; }
.form-grid .check input { width: 17px; height: 17px; accent-color: var(--coral); }
.form-grid .end { display: flex; align-items: flex-end; justify-content: flex-end; }
.compact-grid { margin: 0; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- drop zone & progress ---------- */
.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 190px; padding: 22px 16px; text-align: center; cursor: pointer;
  border: 1.5px dashed transparent; border-radius: 16px; transition: border-color .2s, background .3s;
}
.drop:focus-visible { outline: none; border-color: var(--glow); }
.drop .funki { margin-bottom: 8px; }
body.dragging .drop {
  border-color: var(--glow);
  background: radial-gradient(closest-side, rgba(110, 92, 240, .45), rgba(251, 47, 88, .12) 60%, transparent);
}
body.dragging .drop .drop-title::after { content: " – loslassen!"; }
.drop.compact { min-height: 0; flex-direction: row; gap: 14px; padding: 10px; }
.drop.compact .funki { --s: 26px !important; margin: 0; }
.drop.compact .drop-title { font-size: 14px; margin: 0; }
.drop-title { font-weight: 600; font-size: 16px; margin: 4px 0 2px; }
.drop-sub { margin: 0; color: var(--muted); font-size: 13px; }

.sel-head { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 8px; font-size: 14px; }
.sel-list { list-style: none; margin: 0; padding: 0; max-height: 170px; overflow: auto; background: rgba(255,255,255,.03); border-radius: 12px; }
.sel-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 12px; font-size: 13px; border-bottom: 1px solid var(--line); }
.sel-list li:last-child { border-bottom: 0; }
.sel-list .name { font-size: 13px; }

.progress-title { font-weight: 600; font-size: 16px; margin: 0 0 12px; overflow-wrap: anywhere; }
.link-box { display: flex; gap: 8px; }
.link-box input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.bar-wrap { position: relative; margin: 34px 0 10px; }
.bar { height: 4px; background: var(--soft); border-radius: 99px; }
#bar-fill {
  height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--glow), var(--coral));
  box-shadow: 0 0 12px rgba(251, 47, 88, .7);
  transition: width .25s linear;
}
.bar-rider { position: absolute; left: 0; bottom: 2px; transform: translateX(-50%); transition: left .25s linear; }
.bar-rider .funki { --s: 22px; }
#again { margin-top: 10px; }
.done-icon { display: none; }

/* ---------- admin ---------- */
.tabs { display: flex; gap: 4px; margin: 14px 0 10px; padding: 0 4px; }
.tab {
  height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: none;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active { background: rgba(255, 255, 255, .14); color: var(--text); }
.list { display: flex; flex-direction: column; gap: 8px; }
.list > p { padding: 8px 6px; margin: 0; }
.item {
  background: var(--pane); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px;
  display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center;
}
.item-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.item-main .muted { font-size: 12px; }
.item-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.title-text { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 620px) { .item { grid-template-columns: 1fr; } .item-actions { justify-content: flex-start; } }
.item-msg { white-space: pre-wrap; background: var(--soft); border-radius: 10px; padding: 7px 11px; margin-top: 6px; overflow-wrap: anywhere; }
.badge { flex: none; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--muted); }
.badge.ok { color: var(--ok); background: rgba(76, 209, 138, .12); }
.badge.warn { color: var(--warn); background: rgba(245, 176, 74, .14); }
.history { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 10px; }
.history p { margin: 0 0 8px; }
.events { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.events li { display: grid; grid-template-columns: 130px 130px 1fr; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.events li:last-child { border-bottom: 0; }
@media (max-width: 620px) { .events li { grid-template-columns: 1fr; gap: 0; } }
.ev-time { color: var(--muted); }
.ev-kind { font-weight: 600; }
.ev-kind.download { color: var(--ok); }
.ev-kind.email { color: #a597ff; }
.ev-detail { color: var(--muted); overflow-wrap: anywhere; }

.toast {
  position: fixed; left: 50%; top: 14px; transform: translateX(-50%);
  background: #000; color: #fff; border: 1px solid var(--line); padding: 9px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); z-index: 10;
  animation: drop-in .3s ease both;
}

.foot { color: rgba(255, 255, 255, .3); font-size: 12px; padding: 22px 16px 30px; text-align: center; }

/* ---------- Funki, the mascot ---------- */
.funki {
  --s: 56px;
  position: relative; flex: none;
  width: calc(var(--s) * 1.5); height: calc(var(--s) * 1.3);
  animation: f-bob 2.8s ease-in-out infinite;
}
.funki > span, .f-body > span { position: absolute; display: block; }
.f-body {
  left: calc(var(--s) * .25); top: calc(var(--s) * .45);
  width: var(--s); height: calc(var(--s) * .78);
  border-radius: calc(var(--s) * .32);
  background: linear-gradient(#fff, #e6e4ef);
  box-shadow: 0 0 calc(var(--s) * .25) rgba(255, 255, 255, .28);
}
.f-stem {
  left: calc(var(--s) * .7275); top: calc(var(--s) * .27);
  width: calc(var(--s) * .045); height: calc(var(--s) * .2);
  border-radius: 99px; background: rgba(255, 255, 255, .9);
}
.f-ball {
  left: calc(var(--s) * .685); top: calc(var(--s) * .2);
  width: calc(var(--s) * .13); height: calc(var(--s) * .13);
  border-radius: 50%; background: var(--coral);
  box-shadow: 0 0 calc(var(--s) * .08) var(--coral);
}
.f-arm {
  width: calc(var(--s) * .2); height: calc(var(--s) * .2); border-radius: 50%;
  background: linear-gradient(#fff, #e6e4ef);
}
.f-arm.f-l { left: calc(var(--s) * .05); top: calc(var(--s) * .88); }
.f-arm.f-r { left: calc(var(--s) * 1.25); top: calc(var(--s) * .82); transform-origin: 0 50%; }
.f-eye {
  top: calc(var(--s) * .295);
  width: calc(var(--s) * .075); height: calc(var(--s) * .13);
  border-radius: 99px; background: var(--indigo);
  animation: f-blink 3.7s infinite;
}
.f-eye.f-l { left: calc(var(--s) * .3125); }
.f-eye.f-r { left: calc(var(--s) * .6125); }
.f-cheek {
  top: calc(var(--s) * .4475);
  width: calc(var(--s) * .12); height: calc(var(--s) * .065);
  border-radius: 50%; background: rgba(251, 47, 88, .45);
}
.f-cheek.f-l { left: calc(var(--s) * .15); }
.f-cheek.f-r { left: calc(var(--s) * .73); }
.f-mouth { display: none !important; left: 50%; transform: translateX(-50%); }
.f-z { left: calc(var(--s) * 1.15); top: calc(var(--s) * .2); font-size: calc(var(--s) * .26); font-weight: 600; color: rgba(255,255,255,.75); opacity: 0; }
.f-waves { left: calc(var(--s) * .75); top: calc(var(--s) * .265); width: 0; height: 0; display: none !important; }
.f-waves i {
  position: absolute; left: calc(var(--s) * -.14); top: calc(var(--s) * -.14);
  width: calc(var(--s) * .28); height: calc(var(--s) * .28); border-radius: 50%;
  border: calc(var(--s) * .035) solid transparent; border-top-color: var(--coral);
  animation: f-wave 1.5s ease-out infinite; opacity: 0;
}
.f-waves i:nth-child(2) { animation-delay: .5s; }
.f-waves i:nth-child(3) { animation-delay: 1s; }

.funki[data-mood="working"], .funki[data-mood="happy"], .funki[data-mood="excited"] { }
.funki[data-mood="working"] .f-waves, .funki[data-mood="happy"] .f-waves, .funki[data-mood="excited"] .f-waves { display: block !important; }
.funki[data-mood="working"] { animation-duration: .7s; }
.funki[data-mood="working"] .f-waves i { animation-duration: .8s; }
.funki[data-mood="working"] .f-ball { box-shadow: 0 0 calc(var(--s) * .2) var(--coral); }
.funki[data-mood="working"] .f-cheek, .funki[data-mood="sad"] .f-cheek { display: none; }

.funki[data-mood="happy"] .f-eye,
.funki[data-mood="sleepy"] .f-eye {
  width: calc(var(--s) * .13); height: calc(var(--s) * .07); background: none; animation: none;
  border: calc(var(--s) * .042) solid var(--indigo);
}
.funki[data-mood="happy"] .f-eye { border-bottom: 0; border-radius: 99px 99px 0 0; top: calc(var(--s) * .32); }
.funki[data-mood="sleepy"] .f-eye { border-top: 0; border-radius: 0 0 99px 99px; top: calc(var(--s) * .33); }
.funki[data-mood="happy"] .f-eye.f-l, .funki[data-mood="sleepy"] .f-eye.f-l { left: calc(var(--s) * .285); }
.funki[data-mood="happy"] .f-eye.f-r, .funki[data-mood="sleepy"] .f-eye.f-r { left: calc(var(--s) * .585); }
.funki[data-mood="happy"] .f-mouth {
  display: block !important; top: calc(var(--s) * .5);
  width: calc(var(--s) * .1); height: calc(var(--s) * .05);
  border: calc(var(--s) * .035) solid var(--indigo); border-top: 0; border-radius: 0 0 99px 99px;
}
.funki[data-mood="happy"] .f-arm.f-r { animation: f-wave-arm .6s ease-in-out infinite alternate; }

.funki[data-mood="excited"] .f-eye { width: calc(var(--s) * .1); height: calc(var(--s) * .15); animation: none; box-shadow: inset calc(var(--s) * -.025) calc(var(--s) * .025) 0 calc(var(--s) * -.005) #fff; }
.funki[data-mood="excited"] .f-eye.f-l { left: calc(var(--s) * .3); }
.funki[data-mood="excited"] .f-eye.f-r { left: calc(var(--s) * .6); }
.funki[data-mood="excited"] .f-mouth { display: block !important; top: calc(var(--s) * .49); width: calc(var(--s) * .1); height: calc(var(--s) * .08); border-radius: 50%; background: var(--indigo); }
.funki[data-mood="excited"] .f-arm { transform: translateY(calc(var(--s) * -.16)); }
.funki[data-mood="excited"] { animation-duration: 1s; }

.funki[data-mood="sad"] .f-eye { transform: rotate(12deg); height: calc(var(--s) * .1); top: calc(var(--s) * .31); animation: none; }
.funki[data-mood="sad"] .f-mouth {
  display: block !important; top: calc(var(--s) * .52);
  width: calc(var(--s) * .1); height: calc(var(--s) * .04);
  border: calc(var(--s) * .035) solid var(--indigo); border-bottom: 0; border-radius: 99px 99px 0 0;
}
.funki[data-mood="sleepy"] { animation-duration: 4s; }
.funki[data-mood="sleepy"] .f-z { animation: f-z 2.6s ease-out infinite; }

@keyframes f-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(var(--s) * -.045)); } }
@keyframes f-blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.15); } }
@keyframes f-wave { from { transform: scale(.8); opacity: .95; } to { transform: scale(3); opacity: 0; } }
@keyframes f-wave-arm { from { transform: rotate(-10deg); } to { transform: rotate(-40deg); } }
@keyframes f-z { from { opacity: .9; transform: translate(0, 0) scale(.8); } to { opacity: 0; transform: translate(calc(var(--s) * .2), calc(var(--s) * -.4)) scale(1.2); } }

@media (prefers-reduced-motion: reduce) {
  .funki, .funki *, .stars::before, .notch { animation: none !important; }
}

/* ---------- thumbnails & lightbox ---------- */
a.thumb { position: relative; text-decoration: none; transition: transform .15s; }
a.thumb[data-open]:hover { transform: scale(1.06); }
.thumb video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.thumb .play { position: absolute; font-size: 11px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.thumb.k-text { color: #9ecbff; }
a.name { display: block; text-decoration: none; }
a.name:hover { text-decoration: underline; text-underline-offset: 3px; }

html.lb-open { overflow: hidden; }
.lb {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(6, 6, 12, .9);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  animation: lb-in .2s ease both;
}
@keyframes lb-in { from { opacity: 0; } }
.lb-bar {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 18px;
  width: max-content; max-width: calc(100% - 24px);
  padding: 9px 10px 9px 20px; background: #000; border-radius: 0 0 22px 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5); z-index: 2;
  animation: drop-in .35s cubic-bezier(.2, .9, .3, 1.2) both;
}
.lb-title { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.lb-name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.lb-meta { font-size: 11.5px; color: var(--muted); }
.lb-actions { display: flex; gap: 2px; flex: none; }
.lb-btn {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: none; color: rgba(255,255,255,.75); cursor: pointer; text-decoration: none;
}
.lb-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.lb-btn svg { width: 18px; height: 18px; }
.lb-stage {
  position: absolute; inset: 72px 72px 28px; display: flex; align-items: center; justify-content: center;
}
.lb-stage > img, .lb-stage > video {
  max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6); animation: lb-zoom .25s ease both; background: #000;
}
@keyframes lb-zoom { from { transform: scale(.96); opacity: 0; } }
.lb-doc { width: min(100%, 1000px); height: 100%; border: 0; border-radius: 12px; background: #fff; }
.lb-audio, .lb-fallback { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; color: var(--muted); }
.lb-audio audio { width: min(420px, 80vw); }
.lb-fallback p { margin: 0; max-width: 320px; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border: 0; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08); color: #fff;
}
.lb-nav:hover { background: rgba(255, 255, 255, .16); }
.lb-nav svg { width: 22px; height: 22px; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
@media (max-width: 640px) {
  .lb-stage { inset: 64px 8px 76px; }
  .lb-nav { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
  .lb-name { max-width: 50vw; }
}
.lb-text {
  width: min(100%, 860px); max-height: 100%; overflow: auto; margin: 0;
  padding: 22px 24px; border-radius: 14px; background: var(--pane); border: 1px solid var(--line);
  font: 13.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: rgba(255, 255, 255, .88);
  white-space: pre-wrap; overflow-wrap: anywhere; animation: lb-zoom .25s ease both;
}
