.local-library-mask{
  position:fixed;inset:0;z-index:26000;display:grid;place-items:center;padding:clamp(18px,4vw,48px);
  background:rgba(2,4,8,.48);backdrop-filter:blur(18px) saturate(1.18);-webkit-backdrop-filter:blur(18px) saturate(1.18);
  opacity:0;visibility:hidden;pointer-events:none;transition:opacity var(--motion-duration-normal,260ms) ease,visibility 0s linear var(--motion-duration-normal,260ms)
}
.local-library-mask.open{opacity:1;visibility:visible;pointer-events:auto;transition-delay:0s}
.local-library-dialog{
  width:min(980px,100%);height:min(760px,calc(100vh - 48px));min-height:480px;display:grid;
  grid-template-rows:auto auto auto auto minmax(0,1fr) auto;overflow:hidden;border:1px solid rgba(255,255,255,.11);border-radius:28px;
  color:#f6f8fb;background:linear-gradient(145deg,rgba(18,23,30,.94),rgba(7,10,15,.9));
  box-shadow:0 32px 100px rgba(0,0,0,.55),inset 0 1px rgba(255,255,255,.055);
  transform:translateY(18px) scale(.975);transition:transform var(--motion-duration-normal,260ms) var(--motion-ease-out,cubic-bezier(.22,.8,.2,1))
}
.local-library-mask.open .local-library-dialog{transform:translateY(0) scale(1)}
.local-library-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:24px 26px 17px}
.local-library-kicker{font:600 10px/1.2 "JetBrains Mono",monospace;letter-spacing:.2em;color:rgba(184,216,255,.62)}
.local-library-head h2{margin:5px 0 5px;font:700 clamp(22px,3vw,31px)/1.1 Inter,"Noto Sans SC",sans-serif;letter-spacing:-.04em}
.local-library-head p{margin:0;color:rgba(226,234,244,.54);font-size:12px;line-height:1.55}
.local-library-close{width:38px;height:38px;border:1px solid rgba(255,255,255,.1);border-radius:50%;color:rgba(255,255,255,.72);background:rgba(255,255,255,.045);font:300 25px/1 Inter;cursor:pointer}
.local-library-actions,.local-library-toolbar{display:flex;align-items:center;gap:8px;padding:0 26px 14px;overflow-x:auto;scrollbar-width:none}
.local-library-actions::-webkit-scrollbar,.local-library-toolbar::-webkit-scrollbar{display:none}
.local-library-actions button,.local-library-toolbar button,.local-library-pager button{
  flex:0 0 auto;min-height:34px;padding:0 13px;border:1px solid rgba(255,255,255,.09);border-radius:11px;color:rgba(244,248,255,.74);
  background:rgba(255,255,255,.04);font:500 12px/1 Inter,"Noto Sans SC",sans-serif;cursor:pointer;transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease
}
.local-library-actions button:hover,.local-library-toolbar button:hover,.local-library-pager button:not(:disabled):hover{color:#fff;background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.16);transform:translateY(-1px)}
.local-library-actions button:disabled,.local-library-toolbar button:disabled,.local-library-toolbar input:disabled,.local-library-pager button:disabled{opacity:.38;cursor:wait;transform:none}
.local-library-actions .primary{color:#07111d;background:linear-gradient(135deg,#a9d7ff,#dbeaff);border-color:transparent;font-weight:700}
.local-library-actions .heartbeat{color:#ffdce5;border-color:rgba(255,130,166,.22);background:rgba(255,87,135,.09)}
.local-library-actions .danger{margin-left:auto;color:rgba(255,179,179,.78)}
.local-library-toolbar{padding-bottom:12px}
.local-library-toolbar input{min-width:180px;flex:1;height:40px;padding:0 14px;border:1px solid rgba(255,255,255,.09);border-radius:13px;outline:0;color:#fff;background:rgba(255,255,255,.045);font:400 13px Inter,"Noto Sans SC",sans-serif}
.local-library-toolbar input:focus{border-color:rgba(159,207,255,.5);box-shadow:0 0 0 3px rgba(103,175,255,.1)}
.local-library-summary{padding:0 28px 10px;color:rgba(222,231,242,.54);font-size:11px;font-variant-numeric:tabular-nums}
.local-library-list{min-height:0;overflow:auto;padding:0 16px 12px;overscroll-behavior:contain;scrollbar-gutter:stable both-edges}
.local-library-list::-webkit-scrollbar{width:6px}.local-library-list::-webkit-scrollbar-track{background:transparent}.local-library-list::-webkit-scrollbar-thumb{border-radius:99px;background:rgba(255,255,255,.14)}
.local-library-row{width:100%;display:grid;grid-template-columns:36px 46px minmax(0,1fr) 34px;align-items:center;gap:11px;padding:8px 10px;border:0;border-radius:15px;color:inherit;text-align:left;background:transparent;cursor:pointer}
.local-library-row:hover,.local-library-row:focus-visible{outline:0;background:rgba(255,255,255,.055)}
.local-library-index{color:rgba(255,255,255,.32);font:500 10px/1 "JetBrains Mono",monospace;text-align:center}
.local-library-cover{width:44px;height:44px;border-radius:11px;background:radial-gradient(circle at 35% 30%,rgba(168,214,255,.28),rgba(62,78,98,.18) 42%,rgba(0,0,0,.25));background-position:center;background-size:cover;box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
.local-library-copy{min-width:0;display:flex;flex-direction:column;gap:4px}.local-library-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600}.local-library-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgba(226,234,244,.46);font-size:10px}
.local-library-play{color:rgba(206,228,255,.54);font-size:11px;text-align:center}
.local-library-empty{height:100%;min-height:230px;display:grid;place-content:center;text-align:center;gap:8px;padding:30px;color:rgba(236,242,250,.5)}
.local-library-empty b{color:rgba(255,255,255,.8);font-size:16px}.local-library-empty span{max-width:440px;font-size:12px;line-height:1.7}
.local-library-pager{min-height:52px;display:flex;align-items:center;justify-content:center;gap:14px;padding:8px 20px 13px;border-top:1px solid rgba(255,255,255,.055)}
.local-library-pager span{min-width:58px;text-align:center;color:rgba(255,255,255,.46);font:500 10px/1 "JetBrains Mono",monospace}.local-library-pager button:disabled{opacity:.3;cursor:default}
.local-library-pl-cover{width:44px;height:44px;border-radius:8px;display:grid;place-items:center;flex:0 0 auto;color:rgba(218,237,255,.82);background:radial-gradient(circle at 28% 22%,rgba(142,203,255,.34),rgba(69,93,122,.16) 48%,rgba(5,9,14,.36));box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);font:800 10px/1 "JetBrains Mono",monospace;letter-spacing:.08em}
.tag-source.local{color:#cbe7ff!important;border-color:rgba(142,203,255,.2)!important;background:rgba(96,167,226,.11)!important}
@media(max-width:720px){
  .local-library-mask{align-items:end;padding:0}.local-library-dialog{width:100%;height:min(88dvh,760px);min-height:440px;border-radius:24px 24px 0 0;border-bottom:0}
  .local-library-head{padding:19px 18px 13px}.local-library-actions,.local-library-toolbar{padding-left:18px;padding-right:18px}.local-library-summary{padding-left:20px}.local-library-actions .danger{margin-left:0}
  .local-library-row{grid-template-columns:28px 42px minmax(0,1fr) 28px;padding-left:4px;padding-right:4px}.local-library-cover{width:40px;height:40px}
}
@media(prefers-reduced-motion:reduce){.local-library-mask,.local-library-dialog,.local-library-actions button,.local-library-toolbar button{transition:none!important}}
