.ebook-browser .top-bar{padding:15px 28px;gap:13px;flex-wrap:nowrap;background:var(--sidebar-bg)}
.ebook-browser #main-content{padding:23px 28px 40px;scroll-behavior:auto;perspective:none}
.ebook-view-meta{font:11px/1.6 'Segoe UI',sans-serif;color:var(--secondary);max-width:1100px;margin:0 auto 17px}
.ebook-browser .tab-content{max-width:1100px}.ebook-browser .tab-content>h1{font-size:30px!important;margin-bottom:18px}.ebook-browser .browse-category.active{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 19px}.ebook-browser .browse-category>h1,.ebook-browser .browse-category>p{grid-column:1/-1;margin:0}.ebook-browser .browse-category>p{margin-bottom:5px;color:var(--secondary)}
.ebook-browser #fav-container,.ebook-browser #search-container{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 19px}.ebook-browser .empty-state{grid-column:1/-1}
.ebook-browser .browse-idea{margin:0;padding:23px;border-top:1px solid var(--border-color);position:relative;align-self:start;min-width:0;border-radius:12px;box-shadow:none;background:var(--card-bg)!important}.ebook-browser .browse-idea::before{display:none}
.ebook-browser .browse-idea h3{font:25px/1.2 Georgia,serif!important;margin:0 0 13px;padding-right:28px}.ebook-browser .browse-idea-description{font-size:13px;line-height:1.8;color:var(--text-color);margin-bottom:0}.ebook-browser .has-prompt .browse-idea-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.ebook-browser .browse-idea:has(.idea-details[open]) .browse-idea-description{display:block;overflow:visible}
.ebook-browser .fav-icon-btn{top:17px;right:15px;width:29px;height:29px;font-size:21px;background:none;box-shadow:none;border:0}
.idea-details{margin-top:20px;border-top:1px solid var(--border-color)}.idea-details summary{padding:13px 0 0;cursor:pointer;color:var(--primary);font:600 12px/1.6 'Segoe UI',sans-serif;min-height:35px}.idea-details[open] summary{padding-bottom:12px}.idea-details .prompt-wrapper{margin-top:0}.idea-details .prompt-box{font:12px/1.75 Consolas,monospace;padding:17px;max-height:420px;overflow:auto}.idea-details summary:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.ebook-embedded #sidebar,.ebook-embedded .fab-container{display:none!important}.ebook-embedded #main-wrapper{width:100%;min-width:0}.ebook-random-action{white-space:nowrap;background:#e7edda;color:#4b6836;border:1px solid #cbd5b6;border-radius:8px;font:12px 'Segoe UI',sans-serif;padding:10px 14px;cursor:pointer;min-height:39px}.ebook-random-action:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.ebook-browser .theme-toggle{width:39px;height:39px;flex-shrink:0;font-size:16px}.ebook-browser .search-container{max-width:none}
@media(max-width:650px){.ebook-browser .top-bar{padding:12px 18px;gap:9px}.ebook-browser #main-content{padding:20px 18px 35px}.ebook-browser .browse-category.active,.ebook-browser #fav-container,.ebook-browser #search-container{grid-template-columns:1fr}.ebook-browser .tab-content>h1{font-size:26px!important}.ebook-browser .browse-idea{padding:21px}.ebook-browser .browse-idea h3{font-size:25px!important}.ebook-random-action{font-size:11px;padding:10px}.ebook-browser .search-container input{font-size:12px}.ebook-view-meta{font-size:10px;margin-bottom:15px}.idea-details .prompt-box{font-size:12px}}
@media(max-width:420px){.ebook-random-action{max-width:54px;white-space:normal;font-size:10px;line-height:1.25;padding:5px 9px}.ebook-browser .top-bar{gap:7px}.ebook-browser .theme-toggle{width:34px;height:34px}}
