/* menus2.js: one menu style; lists open in place, the card growing smoothly around them */
.svm{overflow:auto;overscroll-behavior:contain;max-width:340px;transition:max-height .32s cubic-bezier(.2,.8,.2,1)}
.svm.m2-own,.svm.m2-book{width:290px}
.svm-r small{margin-left:auto;font:400 15px "EB Garamond",Georgia,serif;color:var(--ink3,#8A8278)}
.svm-r > span{flex:1}
.svm-r small + .svm-chev{margin-left:8px}
.svm-chev{width:15px!important;height:15px!important;margin-left:auto;transition:transform .32s cubic-bezier(.2,.8,.2,1)}
.svm-r.open .svm-chev{transform:rotate(90deg)}
.svm-sub{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .34s cubic-bezier(.2,.8,.2,1),opacity .26s ease}
.svm-sub.open{grid-template-rows:1fr;opacity:1}
.svm-subi{overflow:hidden;min-height:0}
.svm-opt{padding-left:44px!important}
.svm-opt .svm-ok{width:16px!important;height:16px!important;color:var(--ink,#1C1B19)!important}
.svm-new{padding-left:44px!important;cursor:text!important;color:var(--ink3,#8A8278)!important}
.svm-new svg{width:15px!important;height:15px!important;margin-left:-28px}
.svm-new input{all:unset;flex:1;min-width:0;font:400 16.5px/1.2 "EB Garamond",Georgia,serif;color:var(--ink,#1C1B19)}
.svm-new input::placeholder{color:var(--ink3,#8A8278)}
html.night .svm-opt .svm-ok,html.night .svm-new input{color:#ECE8E0!important}
@media (prefers-reduced-motion:reduce){.svm-sub,.svm-chev{transition:none}}
/* the old boxes are gone */
#picker,.picker,.sm2{display:none!important}
/* the chapter list: the + alone (its menu saves and unsaves); no separate bookmark beside it */
html body #app li:has(> [data-act="chmenu"]) > [data-act="star"],html body #app li:has([data-act="chmenu"]) [data-act="star"]{display:none!important}
/* on a dark book page the menu stays a light card with the site's dark ink (it was inheriting the page's light text) */
html.bk-tint:not(.bk-tint-light) .svm{--ink:#1C1B19;--ink3:#776B5D;--paper:#FCFBF9;color:#1C1B19;background:rgba(252,251,249,.97)!important}
html.bk-tint:not(.bk-tint-light) .svm .svm-r{color:#1C1B19!important}
html.bk-tint:not(.bk-tint-light) .svm .svm-r.danger,html.bk-tint:not(.bk-tint-light) .svm .svm-r.danger svg{color:#B0161A!important}
