/* Library: every video, where it went, and batch send. */
.lib-bar-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 16px}
.lib-q{flex:1 1 220px;min-width:0;max-width:360px;font:inherit;font-size:14px;color:var(--ink);background:var(--surface);border:0;border-radius:6px;padding:6px 10px;box-shadow:var(--btn-shadow);outline:none}
.lib-q:focus{box-shadow:0 0 0 2px color-mix(in srgb,var(--blue) 45%,transparent)}
.lib-plat{max-width:none;background:var(--surface);border-radius:6px;box-shadow:var(--btn-shadow);padding:0 8px}
.lib-plat select{font-size:13px;color:var(--ink);text-align:left;text-align-last:left;padding:5px 20px 5px 2px}

.lib-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:16px 14px}
.lt{position:relative;min-width:0}
.lt-open{display:block;width:100%;aspect-ratio:9/14;border-radius:8px;overflow:hidden;background:var(--fill);position:relative;padding:0;box-shadow:0 0 0 1px var(--edge);cursor:pointer;transition:box-shadow .15s}
.lt-open img{width:100%;height:100%;object-fit:cover;display:block}
.lt-open:hover{box-shadow:0 0 0 1.5px var(--ink-3)}
.lt-v,.lt-u{position:absolute;bottom:6px;font-size:12px;font-weight:600;color:#fff;background:rgba(0,0,0,.55);border-radius:4px;padding:2px 6px;line-height:1.3}
.lt-v{left:6px}
.lt-u{right:6px}
.lt-sel{position:absolute;top:6px;left:6px;cursor:pointer;z-index:1}
.lt-sel input{position:absolute;opacity:0;pointer-events:none}
.lt-sel span{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.28);box-shadow:inset 0 0 0 1.5px #fff;transition:background .15s,opacity .15s;opacity:0}
.lt-sel span svg{width:12px;height:12px;opacity:0}
.lt:hover .lt-sel span,.lib-grid.selecting .lt-sel span,.lt-sel input:focus-visible+span{opacity:1}
.lt-sel input:focus-visible+span{outline:3px solid color-mix(in srgb,var(--blue) 55%,transparent);outline-offset:2px}
.lt-sel input:checked+span{background:var(--blue);box-shadow:inset 0 0 0 1.5px #fff;opacity:1}
.lt-sel input:checked+span svg{opacity:1}
.lt.on .lt-open{box-shadow:0 0 0 2px var(--blue)}
.lt-meta{padding:8px 2px 0}
.lt-cap{margin:0;font-size:13px;font-weight:500;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lt-sub{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:3px;font-size:12px;color:var(--ink-2)}
.lt-dots{display:flex;gap:3px;flex:none}
.ld{width:7px;height:7px;border-radius:50%;box-shadow:inset 0 0 0 1.2px var(--ink-3);display:block}
.ld.posted{background:var(--ok-ink,#1a7f37);box-shadow:none}
.ld.queued{background:var(--blue);box-shadow:none}
.ld.src{background:var(--ink-3);box-shadow:none}
.lib-more{grid-column:1/-1;justify-self:center;margin:8px 0}

.lib-sel{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:30;display:flex;align-items:center;gap:14px;padding:8px 8px 8px 16px;border-radius:8px;background:var(--surface);box-shadow:0 0 0 1px var(--edge),0 8px 24px rgba(0,0,0,.12);font-size:14px;white-space:nowrap}
.lib-sel[hidden]{display:none}
.lib-sel .text-btn{font-size:14px}
@media (min-width:760px){.lib-sel{left:calc(50% + var(--side-w) / 2)}}

/* sheets */
.li-head{display:flex;gap:14px;align-items:flex-start;margin:0 0 20px}
.li-img{width:84px;height:150px;border-radius:6px;overflow:hidden;background:var(--fill);flex:none;box-shadow:0 0 0 1px var(--edge)}
.li-img img{width:100%;height:100%;object-fit:cover}
.li-cap{margin:2px 0 6px;font-size:14px;line-height:1.45;white-space:pre-line;max-height:8.7em;overflow:auto}
.li-head p{margin:0 0 4px;font-size:13px}
.li-src{display:flex;align-items:center;gap:6px}
.li-none{padding:14px 16px !important}
.lib-to{gap:8px}
body:has(.main) .lib-to .chip{border-radius:6px;font-size:14px;padding:4px 10px 4px 4px;box-shadow:0 0 0 1px var(--edge)}
body:has(.main) .lib-to .chip .tile{--s:24px;border-radius:5px}
body:has(.main) .lib-to .chip:has(input:checked){box-shadow:0 0 0 2px var(--blue)}
.lib-to .chip.off{opacity:.45;cursor:default}
.lib-gap{margin-top:22px !important}
#libsend .field input[type=number]{width:70px}

@media (max-width:759px){
  .lib-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px}
  .lt-meta{padding-top:6px}
  .lt-cap{font-size:12px}
  .lt-sub>span:first-child{display:none}
  .lt-sub{justify-content:flex-start}
  .lt-sel span{opacity:1;width:20px;height:20px}
  .lib-q{max-width:none;flex-basis:100%}
  .lib-sel{left:12px;right:12px;transform:none;bottom:calc(var(--tab-h) + env(safe-area-inset-bottom) + 10px);gap:10px;justify-content:space-between}
}
