/* App reading screens: shared spacing, compact toolbar, distinct reading actions. */
:is(#recentReading,#ramcharitmanas,#balkand,#sundarkand){--bb-accent:#68303b;--bb-ink:#332e2b;--bb-soft:#fffdf8;--bb-soft2:#fffdf8;--bb-edge:#e9e3d7;--bb-wash:#f8f6f0;background:#f8f6f0;color:#332e2b;font-size:16px;line-height:1.65}
:is(#recentReading,#ramcharitmanas,#balkand,#sundarkand)>.content{padding:0 16px 24px;max-width:760px;margin:0 auto;box-sizing:border-box}
:is(#recentReading,#ramcharitmanas,#balkand,#sundarkand) .subhead{display:flex;align-items:center;gap:12px;min-height:76px;padding:14px 0;margin:0 0 14px;background:none;border:0;border-bottom:1px solid #e6dfd3;border-radius:0;box-shadow:none}
:is(#recentReading,#ramcharitmanas,#balkand,#sundarkand) .subhead>.back{display:grid;place-items:center;width:42px;height:42px;min-width:42px;min-height:42px;flex:0 0 42px;padding:0;background:#fffdf8;border:1px solid #e6dfd3;border-radius:13px;font-size:0;color:#68303b;box-shadow:none}
:is(#recentReading,#ramcharitmanas,#balkand,#sundarkand) .subhead>.back:before{content:'←';font:500 23px/1 sans-serif}
:is(#recentReading,#ramcharitmanas,#balkand,#sundarkand) .subhead h1{font-size:21px;line-height:1.4;color:#4d2731;margin:0 0 4px;font-weight:750}
:is(#recentReading,#ramcharitmanas,#balkand,#sundarkand) .subhead p{font-size:12px;line-height:1.65;color:#786a61;margin:0;font-weight:450}
#recentReading .bb-reading-help{font-size:13px;line-height:1.75;color:#786a61;background:transparent;padding:0 2px;margin:6px 0 20px}
#recentReading #readingJourney .bb-reading-book{background:#fffdf8;border:1px solid #e8e0d2;border-radius:20px;padding:18px;margin:14px 0 18px;box-shadow:0 5px 18px #4e382b06;overflow:hidden}
#recentReading .bb-reading-book-head{display:flex;align-items:center;gap:13px;margin:0 0 18px}
#recentReading .bb-reading-book-mark{display:grid;place-items:center;width:52px;height:62px;flex:0 0 52px;border-radius:7px 13px 13px 7px;color:#824b23;background:#f5e4be;border-left:4px solid #c59852;box-shadow:2px 3px 0 #e9d8b8}
#recentReading .bb-reading-book:nth-of-type(2n) .bb-reading-book-mark{background:#e1ebe4;color:#346250;border-left-color:#709584;box-shadow:2px 3px 0 #cfded2}
#recentReading .bb-reading-book-head h2{font-size:20px;line-height:1.45;margin:0 0 5px;color:#4d2731;font-weight:750}
#recentReading .bb-reading-book-head p{font-size:13px;line-height:1.6;margin:0;color:#776a60}
#recentReading .bb-reading-book-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:0 0 14px}
#recentReading .bb-reading-book-actions>*{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:6px;min-height:46px;padding:10px 8px;border-radius:12px;font-family:inherit;font-size:14px;font-weight:650;line-height:1.5;text-align:center;text-decoration:none!important;box-shadow:none;white-space:normal}
#recentReading .bb-reading-book-actions>.bb-reading-resume{background:#68303b;border:1px solid #68303b;color:#fffaf1!important}
#recentReading .bb-reading-book-actions>.bb-reading-complete{background:#eef4ee;border:1px solid #d8e5d9;color:#38604e}
#recentReading .bb-reading-complete:disabled{opacity:.55}
#recentReading .bb-reading-part-picker{margin:0;border-top:1px solid #eee7db;padding-top:2px}
#recentReading .bb-reading-part-picker>summary{display:list-item;min-height:44px;align-content:center;cursor:pointer;padding:10px 0;box-sizing:border-box;font-size:13px;line-height:1.6;font-weight:600;color:#786a61}
#recentReading .bb-reading-part-fields{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:2px 0 4px;align-items:center}
#recentReading .bb-reading-part-fields label{grid-column:1/-1;font-size:12px;color:#786a61;margin:0}
#recentReading .bb-reading-part-fields select{box-sizing:border-box;width:100%;min-width:0;min-height:46px;padding:9px 12px;background:#f9f6ef;color:#40372f;border:1px solid #ddd5c8;border-radius:11px;font-family:inherit;font-size:16px;line-height:1.6;margin:0}
#recentReading .bb-reading-part-fields button{background:#68303b;color:#fffaf1;border:1px solid #68303b;border-radius:11px;min-height:46px;padding:9px 14px;font-family:inherit;font-size:14px;line-height:1.6;box-shadow:none;margin:0}
#recentReading .bb-reading-book>p{font-size:13px;line-height:1.7;color:#786a61}
:is(#ramcharitmanas,#balkand,#sundarkand) .result-item{border:1px solid #e8e0d2;border-radius:14px;background:#fffdf8;box-shadow:none;padding:13px 12px;margin:9px 0;gap:10px}
:is(#ramcharitmanas,#balkand,#sundarkand) .result-item b{font-size:16px;color:#4d2731;line-height:1.6}
:is(#ramcharitmanas,#balkand,#sundarkand) .result-item small{font-size:12px;color:#786a61;line-height:1.7}
:is(#ramcharitmanas,#balkand,#sundarkand) .result-item>a{padding:9px 12px;min-height:42px;box-sizing:border-box;background:#68303b;color:#fffaf1!important;text-decoration:none!important;border-radius:10px;font-size:13px;line-height:1.7}
:is(#recentReading,#ramcharitmanas,#balkand,#sundarkand) :is(button,a,input,select,summary):focus-visible{outline:3px solid #c28b37;outline-offset:3px}
body:has(:is(#recentReading,#ramcharitmanas,#balkand,#sundarkand).active) .floating-ai{position:static!important;inset:auto!important;transform:none!important;float:none!important;display:flex!important;width:max-content!important;max-width:calc(100% - 32px)!important;min-height:44px!important;margin:12px auto calc(92px + env(safe-area-inset-bottom,0px))!important;box-shadow:none!important;padding:9px 13px!important}
@media(min-width:640px){#recentReading #readingJourney{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}#recentReading .bb-reading-help{grid-column:1/-1}#recentReading #readingJourney .bb-reading-book{margin:0;height:max-content}}
@media(max-width:340px){#recentReading .bb-reading-book-actions{grid-template-columns:1fr}#recentReading #readingJourney .bb-reading-book{padding:15px}#recentReading .bb-reading-part-fields button{padding-inline:10px}}

#recentReading .bb-reading-book-actions>.bb-reading-complete:only-child{grid-column:1/-1}
