.saved-drawer{width:min(620px,100vw);background:#f5f3ec}
.saved-drawer .drawer-head{background:linear-gradient(135deg,#fffdfa,#f0f4ef);padding:28px 30px 23px;border-bottom:1px solid #d9ddd6}
.saved-drawer .drawer-head h2{font-size:31px}
.saved-drawer .drawer-list{overflow-y:auto}
.saved-library-tools{position:sticky;top:0;z-index:2;background:rgba(245,243,236,.96);backdrop-filter:blur(12px);padding:18px 24px;border-bottom:1px solid var(--line)}
.saved-library-tools>div{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:13px}
.saved-library-tools>div strong{font:17px Georgia}
.saved-library-tools>div span{font-size:9px;color:var(--muted)}
.saved-library-tools label{height:41px;display:flex;align-items:center;gap:9px;padding:0 12px;background:white;border:1px solid #ccd4ce;border-radius:6px}
.saved-library-tools label:focus-within{border-color:#648879;box-shadow:0 0 0 3px rgba(35,100,79,.08)}
.saved-library-tools label svg{width:17px;fill:none;stroke:var(--green);stroke-width:1.7}
.saved-library-tools input{border:0;outline:0;background:none;width:100%;font-size:11px}
.saved-library-results{padding:16px 20px 28px;display:flex;flex-direction:column;gap:12px}
.saved-brief-card{background:var(--paper);border:1px solid #dcddd6;border-radius:9px;box-shadow:0 6px 20px rgba(25,45,36,.05);overflow:hidden;transition:.2s}
.saved-brief-card:hover{transform:translateY(-2px);box-shadow:0 13px 30px rgba(25,45,36,.09);border-color:#bdcac2}
.saved-card-main{display:block;width:100%;border:0;background:none;text-align:left;padding:20px 21px 15px;cursor:pointer}
.saved-type{display:flex;align-items:center;gap:6px;font-size:8px;font-weight:800;letter-spacing:1.2px;color:#9a7946}
.saved-type svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8}
.saved-card-main h3{font:20px/1.42 Georgia;margin:11px 0 17px;color:var(--ink)}
.saved-author{display:flex;align-items:center;gap:9px}
.saved-author>span{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#e2ebe6;color:var(--green);font-size:9px;font-weight:800}
.saved-author>div{display:flex;flex-direction:column}
.saved-author strong{font-size:10px}
.saved-author small{font-size:8px;color:var(--muted);margin-top:2px}
.saved-card-actions{border-top:1px solid #ebeae4;display:flex;justify-content:space-between;padding:8px 11px 8px 20px}
.saved-card-actions button{border:0;background:none;color:var(--green);font-size:9px;font-weight:700;padding:7px;cursor:pointer}
.saved-card-actions button:disabled{color:#9ba39f;cursor:default}
.saved-card-actions .saved-remove{color:#9b5146;width:31px;height:31px;border-radius:50%;display:grid;place-items:center}
.saved-card-actions .saved-remove:hover{background:#f6e9e6}
.saved-remove svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.saved-library-empty{text-align:center;padding:70px 25px;color:var(--muted)}
.saved-library-empty>svg{width:46px;height:46px;fill:#e7ece8;stroke:var(--green);stroke-width:1.2}
.saved-library-empty>span{font:38px Georgia;color:#a68857}
.saved-library-empty h3{font:21px Georgia;color:var(--ink);margin:14px 0 7px}
.saved-library-empty p{font-size:10px;line-height:1.5;margin:auto;max-width:260px}
@media(max-width:600px){.saved-drawer .drawer-head{padding:22px 20px}.saved-library-tools{padding:14px}.saved-library-results{padding:12px}.saved-card-main h3{font-size:18px}}
/* Avoid per-descendant inherited visibility transitions in WebKit when opening
   the saved library with reduced motion. Text and actions should appear together. */
@media(prefers-reduced-motion:reduce){.saved-drawer *{transition-property:none!important}}
