/* TRH reader bookmark / resume UI — v16.174 Orchid Mist light accent pass */
.trh-reader-bookmark-control{position:relative;display:inline-flex;align-items:center}
.trh-reader-bookmark-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.trh-reader-bookmark-glyph,.trh-reader-bookmark-head-glyph{display:inline-flex;width:13px;height:16px;color:#d8bd72}
.trh-reader-bookmark-glyph svg,.trh-reader-bookmark-head-glyph svg{display:block;width:100%;height:100%;overflow:visible}
.trh-reader-bookmark-glyph path,.trh-reader-bookmark-head-glyph path{fill:transparent;stroke:currentColor;stroke-width:1.65;stroke-linejoin:round;transition:fill .16s ease,stroke .16s ease}
.trh-reader-bookmark-toggle.is-saved .trh-reader-bookmark-glyph path{fill:currentColor}
.trh-reader-bookmark-popover{position:absolute;z-index:980;top:calc(100% + 14px);right:0;left:auto;transform:none;width:min(400px,calc(100vw - 24px));box-sizing:border-box;padding:18px;border:1px solid rgba(232,196,109,.38);border-radius:18px;background:linear-gradient(180deg,rgba(18,11,29,.97),rgba(9,6,15,.98));box-shadow:0 24px 70px rgba(0,0,0,.52),inset 0 0 0 1px rgba(255,255,255,.025);font-family:"EB Garamond",Garamond,Georgia,serif;color:#eadfcd;text-align:left}
.trh-reader-bookmark-popover[hidden]{display:none}
.trh-reader-bookmark-popover::before{content:"";position:absolute;top:-7px;right:24px;left:auto;width:12px;height:12px;transform:rotate(45deg);border-left:1px solid rgba(232,196,109,.34);border-top:1px solid rgba(232,196,109,.34);background:#120b1d}
.trh-reader-bookmark-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:13px;border-bottom:1px solid rgba(232,196,109,.16)}
.trh-reader-bookmark-head>div{display:flex;align-items:center;gap:8px;color:#efd485;font-family:Cinzel,serif;font-size:14px;font-weight:700;letter-spacing:.12em}
.trh-reader-bookmark-scope{color:#998da0;font-family:Cinzel,serif;font-size:11px;letter-spacing:.1em;white-space:nowrap}
.trh-reader-bookmark-primary{display:grid;gap:8px;padding:13px 0}
.trh-reader-bookmark-action{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;border:1px solid rgba(232,196,109,.22);border-radius:11px;background:rgba(232,196,109,.035);color:#e8d7ba;cursor:pointer;text-align:left;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.trh-reader-bookmark-action>span{font-family:Cinzel,serif;font-size:13.5px;font-weight:700;letter-spacing:.07em}
.trh-reader-bookmark-action>small{color:#a99cad;font:italic 16px/1.34 "EB Garamond",Garamond,serif;letter-spacing:0}
.trh-reader-bookmark-action--primary{border-color:rgba(232,196,109,.4);background:rgba(232,196,109,.07)}
.trh-reader-bookmark-action:hover,.trh-reader-bookmark-action:focus-visible{border-color:rgba(245,211,126,.72);background:rgba(232,196,109,.1);transform:translateY(-1px);outline:none}
.trh-reader-bookmark-action:disabled{opacity:.46;cursor:default;transform:none}
.trh-reader-bookmark-section{padding:12px 0;border-top:1px solid rgba(232,196,109,.13);border-bottom:1px solid rgba(232,196,109,.13)}
.trh-reader-bookmark-section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;color:#cbb573;font-family:Cinzel,serif;font-size:12.5px;letter-spacing:.1em}
.trh-reader-bookmark-section-title b{min-width:21px;padding:3px 6px;border-radius:999px;background:rgba(232,196,109,.08);text-align:center;font-size:11px}
.trh-reader-bookmark-list{display:grid;gap:6px;max-height:214px;overflow:auto;scrollbar-width:thin;scrollbar-color:#755a31 transparent}
.trh-reader-bookmark-empty{margin:7px 0;color:#8f8392;font-size:15.5px;font-style:italic;text-align:center}
.trh-reader-bookmark-item{display:grid;grid-template-columns:minmax(0,1fr) 30px;align-items:stretch;gap:4px}
.trh-reader-bookmark-jump,.trh-reader-bookmark-remove{border:0;background:transparent;color:inherit;cursor:pointer}
.trh-reader-bookmark-jump{min-width:0;padding:8px 9px;border-radius:9px;text-align:left}
.trh-reader-bookmark-jump span{display:block;color:#dec57f;font-family:Cinzel,serif;font-size:12px;letter-spacing:.055em}
.trh-reader-bookmark-jump small{display:block;margin-top:3px;overflow:hidden;color:#c6b8a3;font:16px/1.32 "EB Garamond",Garamond,serif;white-space:nowrap;text-overflow:ellipsis}
.trh-reader-bookmark-jump:hover,.trh-reader-bookmark-jump:focus-visible{background:rgba(232,196,109,.065);outline:none}
.trh-reader-bookmark-remove{display:grid;place-items:center;border-radius:9px;color:#8f8293;font-size:21px}
.trh-reader-bookmark-remove:hover,.trh-reader-bookmark-remove:focus-visible{background:rgba(232,196,109,.065);color:#f0d58a;outline:none}
.trh-reader-bookmark-settings{display:grid;padding-top:10px}
.trh-reader-bookmark-setting{display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:center;gap:10px;padding:8px 2px;cursor:pointer}
.trh-reader-bookmark-setting>span{display:flex;flex-direction:column;gap:1px}
.trh-reader-bookmark-setting b{color:#d7c5a3;font-family:Cinzel,serif;font-size:12.5px;letter-spacing:.06em}
.trh-reader-bookmark-setting small{color:#8f8293;font-size:15.5px;font-style:italic}
.trh-reader-bookmark-setting input{position:absolute;opacity:0;pointer-events:none}
.trh-reader-bookmark-setting i{position:relative;width:32px;height:18px;border:1px solid rgba(232,196,109,.28);border-radius:999px;background:rgba(255,255,255,.035);transition:background .16s ease,border-color .16s ease}
.trh-reader-bookmark-setting i::after{content:"";position:absolute;top:3px;left:3px;width:10px;height:10px;border-radius:50%;background:#82778a;transition:transform .16s ease,background .16s ease}
.trh-reader-bookmark-setting input:checked+i{border-color:rgba(232,196,109,.52);background:rgba(232,196,109,.12)}
.trh-reader-bookmark-setting input:checked+i::after{transform:translateX(14px);background:#ebcb75}
.trh-reader-bookmark-setting input:focus-visible+i{outline:1px solid #f1d77f;outline-offset:2px}
.trh-reader-bookmark-status{min-height:1.2em;margin:8px 0 0;color:#a89a88;font-size:15px;font-style:italic;text-align:center}

html[data-reader-theme="light"] .trh-reader-bookmark-glyph,html[data-reader-theme="light"] .trh-reader-bookmark-head-glyph{color:#7d5aa8}
html[data-reader-theme="light"] .trh-reader-bookmark-popover{border-color:rgba(84,60,98,.3);background:linear-gradient(180deg,rgba(250,248,252,.99),rgba(240,235,244,.99));box-shadow:0 22px 60px rgba(55,38,64,.2),inset 0 0 0 1px rgba(255,255,255,.72);color:#35283d}
html[data-reader-theme="light"] .trh-reader-bookmark-popover::before{border-color:rgba(84,60,98,.26);background:#f8f5fa}
html[data-reader-theme="light"] .trh-reader-bookmark-head{border-bottom-color:rgba(84,60,98,.14)}
html[data-reader-theme="light"] .trh-reader-bookmark-head>div{color:#573d63}
html[data-reader-theme="light"] .trh-reader-bookmark-scope{color:#796e80}
html[data-reader-theme="light"] .trh-reader-bookmark-action{border-color:rgba(84,60,98,.2);background:rgba(84,60,98,.035);color:#43354b}
html[data-reader-theme="light"] .trh-reader-bookmark-action--primary{border-color:rgba(84,60,98,.3);background:rgba(84,60,98,.065)}
html[data-reader-theme="light"] .trh-reader-bookmark-action>small,html[data-reader-theme="light"] .trh-reader-bookmark-setting small,html[data-reader-theme="light"] .trh-reader-bookmark-empty{color:#716476}
html[data-reader-theme="light"] .trh-reader-bookmark-action:hover,html[data-reader-theme="light"] .trh-reader-bookmark-action:focus-visible,html[data-reader-theme="light"] .trh-reader-bookmark-jump:hover,html[data-reader-theme="light"] .trh-reader-bookmark-jump:focus-visible{border-color:rgba(84,60,98,.38);background:rgba(84,60,98,.085)}
html[data-reader-theme="light"] .trh-reader-bookmark-section{border-color:rgba(84,60,98,.13)}
html[data-reader-theme="light"] .trh-reader-bookmark-section-title,html[data-reader-theme="light"] .trh-reader-bookmark-jump span{color:#654a70}
html[data-reader-theme="light"] .trh-reader-bookmark-section-title b{background:rgba(84,60,98,.08)}
html[data-reader-theme="light"] .trh-reader-bookmark-jump small{color:#5f5166}
html[data-reader-theme="light"] .trh-reader-bookmark-remove{color:#75687c}
html[data-reader-theme="light"] .trh-reader-bookmark-remove:hover,html[data-reader-theme="light"] .trh-reader-bookmark-remove:focus-visible{background:rgba(84,60,98,.08);color:#51305d}
html[data-reader-theme="light"] .trh-reader-bookmark-setting b{color:#4e3e57}
html[data-reader-theme="light"] .trh-reader-bookmark-setting i{border-color:rgba(84,60,98,.26);background:rgba(84,60,98,.035)}
html[data-reader-theme="light"] .trh-reader-bookmark-setting i::after{background:#9b8da2}
html[data-reader-theme="light"] .trh-reader-bookmark-setting input:checked+i{border-color:rgba(84,60,98,.43);background:rgba(84,60,98,.12)}
html[data-reader-theme="light"] .trh-reader-bookmark-setting input:checked+i::after{background:#654a70}
html[data-reader-theme="light"] .trh-reader-bookmark-status{color:#716476}

@media(max-width:760px){
  .trh-reader-bookmark-label{display:none}
  .trh-reader-bookmark-toggle{padding-left:8px;padding-right:8px}
  .trh-reader-bookmark-glyph{width:12px;height:15px}
  .trh-reader-bookmark-popover{position:fixed;top:58px;right:9px;left:auto;transform:none;width:min(400px,calc(100vw - 18px));max-height:calc(100svh - 70px);overflow:auto;padding:16px;border-radius:16px}
  .trh-reader-bookmark-popover::before{display:none}
  .trh-reader-bookmark-list{max-height:180px}
}
@media(prefers-reduced-motion:reduce){
  .trh-reader-bookmark-glyph path,.trh-reader-bookmark-head-glyph path,.trh-reader-bookmark-action,.trh-reader-bookmark-setting i,.trh-reader-bookmark-setting i::after{transition:none}
}
