.library-filters{max-width:740px;margin:25px auto 18px;background:#fffaf2;padding:20px;border:1px solid var(--line);border-radius:12px}
.library-filters label{display:grid;gap:7px;font-size:12px;font-weight:700;color:var(--muted)}
.library-filters input,.library-filters select{min-width:0;width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}
.filter-row{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:13px}
.library-filters .text-btn{margin:12px 0 0}
.library-count{max-width:740px;margin:18px auto;color:var(--muted);font-size:13px}
.library-more{display:block;margin:24px auto}
.theme-list .theme-card{min-height:85px}
.theme-list .theme-card strong,.theme-list .theme-card small{line-height:1.5}
@media(max-width:600px){.library-filters{padding:15px}.filter-row{grid-template-columns:1fr}}
.auth-prompt{max-width:580px;margin:22px auto 0;padding:18px 20px;background:#e7eee5;border:1px solid #c0d1bf;border-radius:12px;color:#334b40}
.auth-prompt strong{font-family:Georgia,serif;font-size:18px}.auth-prompt p{font-size:14px;line-height:1.6;margin:10px 0 0}
.privacy-note{font-size:12px;color:#766c5d;line-height:1.6}
.theme-filter{position:relative;min-width:0}.theme-filter .filter-label{display:block;margin-bottom:7px;font-size:12px;font-weight:700;color:var(--muted)}
.library-filters .theme-toggle{width:100%;min-height:45px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;padding:11px 14px;background:#fffdf9;border:1px solid var(--line);border-radius:8px;color:var(--ink);font-size:13px;line-height:1.45;font-family:inherit;font-weight:500;cursor:pointer}
.theme-toggle span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.theme-toggle span:last-child{font-size:19px;color:#a78354;flex-shrink:0}.theme-toggle[aria-expanded=true]{border-color:#a78354}
.theme-filter-panel{position:absolute;z-index:30;top:calc(100% + 7px);left:0;right:0;background:#fffaf1;border:1px solid #decdb0;border-radius:12px;box-shadow:0 16px 30px #59432a26;padding:12px;min-width:270px}
.theme-filter-panel[hidden]{display:none}.theme-filter-panel .theme-search-label{font-size:11px;margin-bottom:5px}.library-filters .theme-filter-panel input{background:#fffefd;font-size:14px}
.theme-options{max-height:290px;overflow-y:auto;overscroll-behavior:contain;margin-top:8px;display:grid;gap:4px}.theme-option{appearance:none;display:block;width:100%;padding:10px 12px;border:0;border-radius:7px;background:transparent;color:#3e372e;text-align:left;font-family:inherit;font-size:13px;font-weight:500;line-height:1.45;white-space:normal;overflow-wrap:anywhere;cursor:pointer}.theme-option:hover,.theme-option:focus-visible{background:#ece3d4}.theme-option.is-selected{background:#dfe9df;color:#2d493a;font-weight:700}.theme-empty{font-size:13px;color:#736757;padding:12px}
.push-preferences{padding:18px;margin:15px 0;background:#fff9ed;border:1px solid #e5d4b9;border-radius:12px}.push-preferences strong{font:600 18px Georgia,serif;color:#31493d}.push-preferences p{font-size:13px;line-height:1.65;color:#716553}.push-preferences button{margin:9px 0}.push-preferences small{display:block;color:#756750;font-size:12px;line-height:1.5}
@media(max-width:600px){.theme-filter-panel{position:static;margin-top:8px;min-width:0;box-shadow:none}.theme-options{max-height:245px}.theme-option{font-size:13px}}
.account-mode{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:5px;margin:22px 0 20px;border-radius:12px;background:#eee5d7}.account-mode-button{min-width:0;border:0;border-radius:9px;background:transparent;padding:12px 8px;color:#6f6556;font-size:13px;line-height:1.3;font-weight:600}.account-mode-button.is-selected{background:#334b40;color:white;box-shadow:0 3px 9px #273a3020}.auth-error{padding:12px 14px;border:1px solid #e6bbb4;background:#fff0ed;color:#8d3c31;font-size:13px;line-height:1.5;border-radius:8px}
