.library-shell{position:relative;z-index:1;min-height:100dvh;padding:16px 16px calc(128px + env(safe-area-inset-bottom, 0px));color:#f8fafc}.library-topbar{display:grid;grid-template-columns:42px 1fr;gap:12px;align-items:center;margin-bottom:16px}.library-back{width:42px;height:42px;display:grid;place-items:center;border-radius:16px;color:#f8fafc;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1)}.group-title em,.library-topbar p,.state-panel p{margin:0;color:rgba(226,232,240,.62);font-size:12px}.library-topbar h1,.state-panel h2{margin:0;color:#fff;font-weight:850;letter-spacing:0}.library-topbar h1{margin-top:2px;font-size:24px;line-height:1.12}.filter-row{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px;margin-bottom:10px;scrollbar-width:none}.filter-row button{flex:0 0 auto;min-height:44px;border-radius:999px;border:1px solid transparent;padding:0 12px;color:rgba(226,232,240,.62);background:rgba(15,23,42,.48);font-size:12px;font-weight:800;display:inline-flex;align-items:center;gap:6px;touch-action:manipulation}.filter-row button em{min-width:20px;height:20px;display:inline-grid;place-items:center;border-radius:999px;padding:0 5px;color:rgba(248,250,252,.82);background:rgba(2,6,23,.32);font-size:10px;font-style:normal}.filter-row button.active{border-style:solid}.group-list,.record-list{display:flex;flex-direction:column;gap:14px}.group-section{display:flex;flex-direction:column;gap:10px}.group-title{display:flex;align-items:center;gap:7px}.group-title span{width:4px;height:16px;border-radius:999px}.group-title strong{font-size:13px}.state-panel{min-height:260px;display:grid;place-items:center;align-content:center;gap:10px;padding:24px;text-align:center;border-radius:20px;background:rgba(15,23,42,.76);border:1px solid rgba(148,163,184,.18);box-shadow:0 22px 58px rgba(2,6,23,.28);backdrop-filter:blur(18px)}.state-panel svg{color:#fb923c}.state-panel h2{font-size:18px}.state-panel.compact{min-height:190px;margin-top:10px}.state-panel p{max-width:280px;line-height:1.5}.primary-btn{min-height:44px;margin-top:12px;border:0;border-radius:999px;padding:0 16px;color:#fff;background:linear-gradient(135deg,#ff7a1a,#ff3d00);font-size:13px;font-weight:850}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}.library-card{border-radius:20px;padding:16px;color:#f8fafc;background:linear-gradient(145deg,rgba(30,41,82,.94),rgba(9,14,36,.96));border:1px solid rgba(196,181,253,.28);box-shadow:0 18px 48px rgba(2,6,23,.36),inset 0 1px 0 rgba(255,255,255,.08);backdrop-filter:blur(18px);cursor:pointer}.card-head{display:flex;align-items:center;gap:8px}.card-head span{border-radius:999px;padding:3px 8px;font-size:10px;font-weight:850;line-height:18px}.card-head time{margin-left:auto;color:rgba(226,232,240,.5);font-size:10px}.library-card>h2{-webkit-line-clamp:2;margin:12px 0 0;color:#fff;font-size:17px;line-height:1.4;font-weight:850;letter-spacing:0}.library-card>h2,.summary{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}.summary{-webkit-line-clamp:3;margin:7px 0 0;color:rgba(226,232,240,.72);font-size:13px;line-height:1.6}.card-foot{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid rgba(148,163,184,.16)}.tag-row{grid-column:1/-1;min-width:0;display:flex;flex-wrap:wrap;gap:6px}.tag-row span{border-radius:999px;padding:4px 8px;color:rgba(226,232,240,.78);background:rgba(148,163,184,.12);border:1px solid rgba(148,163,184,.14);font-size:11px;font-weight:750}.view-btn{min-width:128px;border:1px solid rgba(148,163,184,.16);border-radius:13px;padding:0 12px;background:rgba(124,92,252,.14)}.delete-btn,.view-btn{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:850}.delete-btn{min-width:74px;border:1px solid rgba(248,113,113,.18);border-radius:13px;padding:0 11px;color:rgba(254,202,202,.78);background:rgba(127,29,29,.1);opacity:.78}.delete-btn:disabled{cursor:wait;opacity:.46}.script-detail{margin-top:10px;border-radius:14px;padding:11px;background:rgba(2,6,23,.34);border:1px solid rgba(148,163,184,.13)}.script-detail b{color:#fb923c;font-size:11px}.script-detail p{margin:4px 0 8px;white-space:pre-wrap;color:rgba(248,250,252,.82);font-size:12px;line-height:1.55}@media (max-width:390px){.card-foot{grid-template-columns:1fr 1fr}.tag-row{grid-column:1/-1}}