/* V5.1 favorites: shared theme tokens, separate controls from links. */
.favorites-nav{margin-top:4px}
.favorites-heading{display:flex;align-items:center;border-radius:7px}
.favorites-heading.selected,.favorite-nav-item.selected{background:var(--peach);color:var(--accent)}
.favorites-heading .nav-row{flex:1;min-width:0;width:auto;padding-right:0;font-weight:600}
.favorite-nav-icon{color:var(--orange);display:flex;align-items:center}
.favorite-count{font-size:12px;font-weight:500;color:var(--muted);margin-left:auto}
.favorite-expand,.favorite-button{display:grid;place-items:center;flex:none;width:32px;height:32px;padding:0;border-radius:6px;color:var(--muted)}
.favorite-expand{margin-right:4px}
.favorite-expand .svg,.favorite-button .svg{width:16px;height:16px}
.favorite-expand:hover,.favorite-button:hover{background:var(--hover);color:var(--accent)}
.favorite-button.is-saved{color:var(--orange)}
.favorite-button.is-saved:not(.favorite-remove) .svg{fill:currentColor}
.favorite-nav-item{display:flex;align-items:center;gap:0;border-radius:6px;min-width:0}
.favorite-nav-item:hover,.favorite-nav-item:focus-within{background:var(--hover)}
.favorite-nav-item.selected:hover{background:var(--peach)}
.sub .favorite-nav-item>a,.extra-favorite>a{min-width:0;flex:1;overflow-wrap:anywhere}
.favorite-nav-item.selected>a{color:var(--accent);font-weight:600}
.favorite-nav-item .favorite-button{margin-right:2px}
.favorite-remove.is-saved{color:var(--muted)}
.favorite-empty-nav{font-size:13px;color:var(--muted);padding:7px 10px;line-height:1.55}
.favorite-title{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}
.favorite-title h1{min-width:0;overflow-wrap:anywhere}
.favorite-title .favorite-button{width:44px;height:44px;margin-top:2px}
.favorite-title .svg{width:25px;height:25px}
.favorites-page{max-width:800px;margin-inline:auto}
.favorites-intro{margin:10px 0 24px;color:var(--muted)}
.favorites-list{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.favorite-card{display:flex;align-items:center;padding:10px 16px;gap:12px;border-bottom:1px solid var(--line)}
.favorite-card:last-child{border-bottom:0}
.favorite-card:hover{background:var(--hover)}
.favorite-card>a{display:flex;align-items:center;gap:14px;flex:1;min-width:0;color:var(--ink);padding:6px 0;text-decoration:none}
.favorite-card .icon{flex-shrink:0;margin:0}
.favorite-card small{display:block;font-size:13px;color:var(--muted)}
.favorite-card strong{font-size:16px;font-weight:600;overflow-wrap:anywhere}
.favorite-card .favorite-button{width:44px;height:44px}
.favorite-card .favorite-button .svg{width:21px;height:21px}
.favorites-empty{padding:48px 16px;text-align:center;border:1px solid var(--line);border-radius:var(--radius)}
.favorites-empty>.svg{width:32px;height:32px;color:var(--orange)}
.favorites-empty h2{margin:12px 0 8px;font-size:20px}
.favorites-empty a{display:inline-flex;align-items:center;gap:6px;margin-top:20px;font-weight:600}
.favorites-note{display:flex;align-items:flex-start;gap:7px;color:var(--muted);font-size:13px;margin-top:24px}
.favorites-note .svg{width:16px;height:16px;margin-top:3px}
[data-theme=dark] .favorite-button.is-saved:not(.favorite-remove),[data-theme=dark] .favorite-nav-icon{color:var(--accent)}
@media(hover:hover) and (pointer:fine){.favorite-nav-item .favorite-star:not(.is-saved),.favorite-nav-item .favorite-remove{opacity:0}.favorite-nav-item:hover .favorite-button,.favorite-nav-item:focus-within .favorite-button{opacity:1}}
@media(max-width:800px){.favorite-nav-item .favorite-button,.favorite-expand{width:36px;height:36px;opacity:1}.favorite-card{padding:8px 12px}}
