/* Typeflow · Library and Preset Manager windows (LibraryWindow.dc.html, PresetManager.dc.html) */
.win { height: calc(100vh / var(--z)); min-width: 900px; display: flex; flex-direction: column; background: var(--bg); overflow: hidden; }
.wbar { height: 44px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: var(--bg-deep); border-bottom: 1px solid var(--line2); }
.wbody { flex: 1; min-height: 0; display: flex; }
.chip { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--fg2); background: var(--field); border: 1px solid var(--field-bd); border-radius: 7px; padding: 4px 9px; white-space: nowrap; max-width: 380px; overflow: hidden; text-overflow: ellipsis; }
.chip .dot { width: 6px; height: 6px; border-radius: 3px; background: var(--lime); flex: none; }
.chip.off .dot { background: #5A5E5A; }
.navside { width: 236px; flex: none; border-right: 1px solid var(--line2); padding: 12px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; background: var(--bg-side); }
.navb { display: flex; align-items: center; gap: 9px; width: 100%; height: 32px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; color: #C9CCC6; text-align: left; }
.navb:hover { background: #1B1D1F; }
.navb.on { background: #1F2224; color: #fff; }
.navb.open { background: #1A1C1E; color: #fff; }
.subb { display: flex; align-items: center; gap: 8px; width: 100%; height: 28px; padding: 0 10px 0 28px; border-radius: 7px; font-size: 12px; color: var(--fg3); text-align: left; }
.subb:hover { background: #1B1D1F; }
.subb.on { background: #1F2A13; color: var(--lime-soft); }
.navb .n, .subb .n { font-family: var(--mono); font-size: 10.5px; color: var(--mute2); }
.navh { font-size: 10px; font-weight: 600; letter-spacing: .1em; color: var(--mute2); padding: 14px 10px 6px; }
.sbox { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; background: var(--field); border: 1px solid var(--field-bd); border-radius: 9px; }
.sbox input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-size: 12.5px; color: var(--fg); }
.lmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.lgrid .pvbox { height: 104px; }
.lgrid .card .foot { padding: 8px 10px; }
.lgrid .card .nm { font-size: 12px; }
.fav { position: absolute; top: 8px; left: 8px; z-index: 2; }
.bdg { position: absolute; top: 8px; right: 8px; z-index: 2; font-size: 9px; font-weight: 700; letter-spacing: .04em; border-radius: 4px; padding: 2px 5px; }
.insp { width: 312px; flex: none; border-left: 1px solid var(--line2); background: var(--bg-side); display: flex; flex-direction: column; }
.insp .scr { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.insp .act { flex: none; padding: 12px 16px 16px; border-top: 1px solid var(--line2); display: flex; flex-direction: column; gap: 8px; }
.ghostbtn { height: 36px; border-radius: 9px; border: 1px solid var(--line4); font-size: 12px; text-align: center; }
.filt { height: 28px; padding: 0 11px; border-radius: 7px; font-size: 11.5px; font-weight: 500; text-align: center; background: transparent; color: var(--fg3); border: 1px solid var(--field-bd); }
.filt.on { background: #1F2224; color: #fff; border-color: #3A3E42; }
.more { grid-column: 1 / -1; height: 1px; }

/* preset manager */
.pmlist { width: 470px; flex: none; border-right: 1px solid var(--line2); display: flex; flex-direction: column; }
.pmrow { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 14px; border-bottom: 1px solid #1A1C1E; }
.pmrow:hover { background: #17191B; }
.pmrow.on { background: #1A2111; box-shadow: inset 3px 0 0 var(--lime); }
.tile { flex: none; display: flex; align-items: center; justify-content: center; font-family: var(--tight); font-weight: 800; }
.stp { display: grid; grid-template-columns: 74px minmax(0, 1fr) 70px 120px; gap: 10px; align-items: center; min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line3); background: #151618; }
.lk { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; background: var(--field); border: 1px solid var(--field-bd); font-size: 11.5px; color: #C9CCC6; }
.ftoast { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; border-radius: 11px; background: #1C1F22; border: 1px solid #34383B; box-shadow: 0 14px 34px rgba(0,0,0,.5); font-size: 12.5px; z-index: 30; }
.ftoast button { height: 28px; padding: 0 10px; border-radius: 7px; background: #2A2D30; font-weight: 600; color: var(--lime); }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 14px; padding: 18px; border-radius: 11px; border: 1px dashed #34383B; color: var(--fg3); font-size: 12px; text-align: center; }
.dragging .dropzone, .dragging .pmlist { border-color: var(--lime); }
.dragover-veil { position: absolute; inset: 0; background: rgba(197,246,106,.06); border: 2px dashed var(--lime); border-radius: 12px; display: none; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: var(--lime); z-index: 20; pointer-events: none; }
.dragging .dragover-veil { display: flex; }
