.library-page { background: var(--background-alt); min-height: 100vh; }
.library-main { padding: clamp(2.5rem,6vw,5rem) 0 6rem; }
.library-hero { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.library-hero-copy { max-width: 42rem; }
.library-kicker { color: var(--primary); font-size: .82rem; font-weight: 750; margin-bottom: .65rem; }
.library-title { font-family: var(--font-product); font-size: clamp(2.5rem,6vw,4.5rem); letter-spacing: -.055em; line-height: 1; margin-bottom: 1rem; }
.library-lead { color: var(--muted-foreground); font-size: 1.05rem; }
.library-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; }
.library-search { position: relative; flex: 1; max-width: 32rem; }
.library-search input { width: 100%; min-height: 2.8rem; padding: .7rem .9rem .7rem 2.7rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--background-alt); font-family: var(--font-product); }
.library-search svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); }
.library-count { color: var(--muted-foreground); font-size: .88rem; white-space: nowrap; }
.library-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; }
.library-card { display: flex; flex-direction: column; min-height: 17rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform 160ms ease,box-shadow 160ms ease; }
.library-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(16,24,40,.1); }
.library-card-preview { height: 8.5rem; display: grid; place-items: center; background: radial-gradient(circle at 50% 46%,rgba(99,91,255,.15),transparent 4rem),linear-gradient(135deg,#f8f7ff,#f3f6ff); border-bottom: 1px solid var(--border-light); }
.library-map-mark { position: relative; width: 8rem; height: 4rem; }
.library-map-mark::before { content: ''; position: absolute; inset: 1.2rem 2.3rem; border-radius: 7px; background: var(--primary); box-shadow: -3.3rem -1rem 0 -.35rem #dcd9ff,3.3rem -1rem 0 -.35rem #dcd9ff,-3.3rem 1rem 0 -.35rem #dcd9ff,3.3rem 1rem 0 -.35rem #dcd9ff; }
.library-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.15rem; }
.library-card-title { font-size: 1.05rem; font-weight: 750; line-height: 1.35; margin-bottom: .55rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.library-card-meta { color: var(--muted-foreground); font-size: .8rem; margin-bottom: 1rem; }
.library-card-actions { margin-top: auto; display: flex; justify-content: space-between; gap: .6rem; align-items: center; }
.library-open { flex: 1; justify-content: center; }
.library-delete { border: 0; background: transparent; color: var(--muted-foreground); padding: .6rem; cursor: pointer; border-radius: 8px; }
.library-delete:hover { color: var(--error-text); background: var(--error-bg); }
.library-empty,.library-login { text-align: center; padding: 5rem 1.5rem; border: 1px dashed var(--border); border-radius: var(--radius-lg); background: #fff; }
.library-empty h2,.library-login h1 { font-family: var(--font-product); font-size: 1.8rem; margin-bottom: .75rem; }
.library-empty p,.library-login p { color: var(--muted-foreground); margin: 0 auto 1.5rem; max-width: 30rem; }
@media(max-width:900px){.library-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.library-hero{align-items:flex-start;flex-direction:column;}}
@media(max-width:600px){.library-grid{grid-template-columns:1fr}.library-toolbar{align-items:stretch;flex-direction:column}.library-search{max-width:none}.library-hero .btn{width:100%;justify-content:center}.library-card{min-height:15rem}}
