.feeling-search-form { display: flex; align-items: center; gap: 4px; width: 100%; border: 1px solid #cdd0d3; border-radius: 24px; background: rgba(255,255,255,.88); padding: 4px 5px 4px 15px; }
.feeling-search-form:focus-within { border-color: #565c64; box-shadow: 0 0 0 2px rgba(22,23,27,.08); }
.feeling-search-form input { flex: 1; min-width: 0; width: 100%; padding: 8px 0; border: 0; outline: 0; background: transparent; color: #16171b; font: 14px/1.3 var(--ui); }
.feeling-search-form input::placeholder { color: #6b7077; opacity: 1; }
.feeling-search-form button { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; }
.feeling-search-form button:hover { background: #e9eaed; }
.feeling-search-form button:focus-visible { outline: 2px solid #565c64; outline-offset: 1px; }
.feeling-search-form button[hidden] { display: none; }
.feeling-search-form svg { width: 17px; height: 17px; }
.feeling-search-status { color: #676c73; font: 12px/1.45 var(--ui); margin-top: 7px; }
.feeling-search-status:empty { display: none; }
.feeling-search { display: none; }
.feeling-search-ready .feeling-search { display: block; }
.feeling-search-ready #home { height: 100dvh; overflow-y: auto; overflow-x: hidden; }
.feeling-search-ready .uc-hero { height: auto; min-height: 100%; }
.uc-feeling-search { max-width: 430px; margin: 17px 0 0; }
.uc-feeling-search > label { display: block; color: #676c73; font: 12px var(--ui); margin-bottom: 8px; }
.tb-filter-row { display:flex; align-items:center; gap:4px; padding:0 12px 8px 0; }
.tb-filter-row .tb-genres { flex:1; min-width:0; padding-bottom:0; padding-right:4px; }
.tb-search { display:none; align-items:center; justify-content:center; flex:0 0 44px; width:44px; height:44px; border-radius:50%; color:var(--soft); }
.feeling-search-ready .tb-search { display:flex; }
.tb-search svg { width:20px; height:20px; }
.tb-search:hover, .tb-search[aria-expanded="true"] { color:var(--ink); background:rgba(22,23,27,.05); }
.tb-search:focus-visible { outline:2px solid #565c64; outline-offset:1px; }
@media(max-width:380px) {
  .feeling-search-ready .tb-main { gap:4px; padding-left:10px; padding-right:10px; }
  .feeling-search-ready .tb-home { font-size:14px; white-space:nowrap; }
  .feeling-search-ready .tb-actions { gap:2px; }
  .feeling-search-ready .tb-link { font-size:10px; letter-spacing:.05em; white-space:nowrap; padding-left:4px; padding-right:4px; }
  .feeling-search-ready .tb-btn { font-size:10px; letter-spacing:.05em; padding-left:7px; padding-right:7px; }
}
.topbar.collection-mode .tb-filter-row { display:none; }
.tb-feeling-search { margin:0 14px; }
.tb-feeling-search .feeling-search-form { padding-top: 2px; padding-bottom: 2px; }
.tb-feeling-search .feeling-search-status:not(:empty) { margin:4px 0 9px; }
.tb-feeling-search .reading-paths:not([hidden]) { margin:1px 0 10px; }
.feeling-search-dialog { width:min(460px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); margin:auto; padding:20px; border:1px solid var(--line); border-radius:16px; background:var(--bg); color:var(--ink); box-shadow:0 18px 60px rgba(22,23,27,.18); }
.feeling-search-dialog::backdrop { background:rgba(22,23,27,.28); }
.feeling-search-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:-6px -8px 2px 0; }
.feeling-search-heading h2 { font:500 17px/1.3 var(--ui); margin:0; }
.feeling-search-heading button { flex:0 0 44px; width:44px; height:44px; display:grid; place-items:center; border-radius:50%; color:var(--soft); }
.feeling-search-heading button:hover { background:rgba(22,23,27,.05); color:var(--ink); }
.feeling-search-heading button:focus-visible { outline:2px solid #565c64; outline-offset:1px; }
.feeling-search-heading svg { width:19px; height:19px; }
.feeling-search-dialog > p { margin:0 0 16px; color:var(--soft); font:13px/1.5 var(--ui); }
.feeling-search-dialog .feeling-search-form { padding-top:5px; padding-bottom:5px; }
.feeling-search-dialog .feeling-search-form input { font-size:16px; }
.feeling-search-dialog .feeling-search-form button { flex-basis:44px; width:44px; height:44px; }
.feeling-feed-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: calc(var(--tbh, 120px) + 24px) 24px 48px; text-align: center; background: var(--page); }
.feeling-feed-state p { max-width: 340px; color: #62656b; font: 15px/1.6 var(--ui); }
.feeling-feed-state button { border: 1px solid #cdd0d3; border-radius: 22px; padding: 11px 18px; font: 13px var(--ui); }
.feeling-preview-state { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; padding: 30px; text-align: center; font: 14px/1.6 var(--ui); background: var(--page); }
.feeling-preview-state button { text-decoration: underline; text-underline-offset: 5px; }
.feeling-preview-unavailable .pbar, .feeling-preview-unavailable .coverpage { display: none !important; }
.bk[data-feeling-position] > .reveal, .bk[data-feeling-position] > .endcard,
.bk[data-feeling-position].opening-loading .pbar, .bk[data-feeling-position].opening-loading .coverpage { display: none !important; }
.search-reader .feeling-search { display: none !important; }
@media (max-width: 520px) { .uc-feeling-search { margin-top: 18px; } .tb-feeling-search { margin-left: 12px; margin-right: 12px; } .feeling-search-form input { font-size: 16px; } }

.reading-paths { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.reading-paths[hidden], .reading-path-note[hidden] { display:none; }
.reading-path-pill { border:1px solid #dcdad4; border-radius:24px; background:transparent; color:#69665f; padding:7px 12px; min-height:34px; font:12px/1.2 var(--ui); white-space:nowrap; }
.reading-path-pill[aria-pressed="true"] { color:#24231f; background:#eeece6; border-color:#bdbbb3; }
.reading-path-pill:focus-visible, .feeling-browse-link:focus-visible { outline:2px solid #565c64; outline-offset:3px; }
.reading-path-note { color:#79756e; font:11px/1.5 var(--ui); margin:6px 0 0; }
.feeling-browse-link { display:inline-block; padding:7px 0 2px; color:#79756e; font:11px/1.4 var(--ui); text-decoration:none; }
.uc-feeling-search .feeling-browse-link { display:none; }
.feeling-match-reason { font:12px/1.55 var(--ui); color:#746d62; margin:12px auto 0; max-width:32em; }
.feeling-feed-state a { font:13px var(--ui); text-decoration:underline; text-underline-offset:4px; }
.feeling-book-details { gap:10px; overflow:auto; justify-content:flex-start; padding-top:calc(var(--tbh,180px) + 25px); }
.feeling-book-details img { display:block; max-width:150px; width:auto; height:180px; object-fit:contain; box-shadow:2px 4px 12px #0002; margin:8px 0; }
.feeling-book-details img[hidden] { display:none; }
.feeling-book-details h2 { font:400 26px/1.2 var(--bookfont,Georgia,serif); max-width:450px; }
.feeling-book-details .feeling-details-eyebrow { text-transform:uppercase; letter-spacing:.12em; font-size:10px; }
.feeling-book-details .feeling-details-author { margin:0; font-size:13px; }
.feeling-book-details .feeling-details-availability { font-size:11px; color:#827e76; }
.feeling-book-details .feeling-bookshop { border:1px solid #24231f; border-radius:4px; padding:13px 20px; margin-top:4px; text-decoration:none; background:#24231f; color:#fff; }
.feeling-book-details small { color:#827e76; font:10px/1.5 var(--ui); max-width:270px; }
@media(max-width:520px) { .tb-feeling-search .reading-paths { gap:5px; } .reading-path-pill { font-size:11px; padding:7px 10px; } .feeling-book-details { padding-bottom:25px; } .feeling-book-details img { height:145px; } }

.tb-covers { display:none; }
.feeling-search-ready .tb-covers { display:block; }
.tb-feeling-search .reading-path-note { display:none; }
