/* v138: shared functional icon and control rhythm; preserve existing palettes. */
.jv-line-icon{width:1.05em;height:1.05em;display:inline-block;flex:none;vertical-align:-.15em;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.jv-section-toggle{display:inline-grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border:1px solid var(--border,#d3dde8);border-radius:9px;background:var(--card-bg,#fff);color:var(--text,#334155);cursor:pointer;margin-left:auto;padding:0}
.jv-section-toggle .jv-line-icon{width:18px;height:18px;transition:transform .15s}
.jv-section-toggle[aria-expanded=false] .jv-line-icon{transform:rotate(-90deg)}
.jv-section-toggle:hover{border-color:#91a8c1}
.jv-section-toggle:focus-visible, .checked-aggregate-actions button:focus-visible,.sc-mode-list button:focus-visible,body.wb-tidy button:focus-visible{outline:2px solid #648ab2;outline-offset:2px}
#checkedAggregate.jv-section-folded .checked-aggregate-list,#checkedAggregate.jv-section-folded .checked-aggregate-actions,#checkedAggregate.jv-section-folded .jv-agg-more,#studyCenter.jv-section-folded .sc-grid{display:none!important}
#checkedAggregate.jv-section-folded .checked-aggregate-header,#studyCenter.jv-section-folded .section-header{margin-bottom:0}
#studyCenter .section-header{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
#checkedAggregate .checked-aggregate-header{column-gap:8px}
#checkedAggregate .checked-aggregate-header > div:first-child{flex:1 1 auto;min-width:0}
#checkedAggregate .jv-section-toggle{order:3}
#checkedAggregate .checked-aggregate-actions{order:2}
#studyCenter,#checkedAggregate,.section-block,.resume-chip-section{margin-bottom:24px}
#studyCenter .sc-grid,.eng-grid,.lang-grid,.deep-grid{gap:12px!important}
#studyCenter .sc-card,.lang-card,.checked-aggregate{border-radius:14px!important}
.checked-aggregate-actions button,.sc-mini,.sc-primary{min-height:36px;box-shadow:none}
.checked-item-actions button,.checked-item-actions a{min-height:30px;box-sizing:border-box}
.sc-mode-list button{box-shadow:none;border-radius:10px}
.sc-mode-list .sc-ico .jv-line-icon,.deep-icon .jv-line-icon{width:20px;height:20px}
body.wb-tidy .wb-actions .wb-menu-btn,body.wb-tidy .wb-actions .voca-action-btn{box-shadow:none}
@media(max-width:640px){.jv-section-toggle{width:40px;height:40px;flex-basis:40px}#checkedAggregate .checked-aggregate-actions{order:4;flex-basis:100%}#checkedAggregate .jv-section-toggle{order:2}#studyCenter .section-header{flex-direction:row;align-items:center}#studyCenter .section-desc{order:3;flex-basis:100%}.checked-aggregate-actions button,.sc-mini,.sc-primary{min-height:40px}.checked-item-actions button,.checked-item-actions a{min-height:36px}}

/* v139: circular fold controls and explicit study hover contrast. */
.jv-section-toggle{border-radius:50%;background:#edf2f8;color:#51657b;border-color:#d5e0ec;aspect-ratio:1}
.jv-section-toggle:hover{background:#e0e9f3;color:#344d68;border-color:#b5c7db}
html[data-theme="dark"] .jv-section-toggle{background:#253348;color:#c7d6e7;border-color:#3a4c63}
html[data-theme="dark"] .jv-section-toggle:hover{background:#31435a;color:#f1f5f9;border-color:#58708c}
/* Generic modal action hover used to override rating backgrounds. */
body .voca-modal .voca-card-actions .voca-card-rate button.rate-again{--rating-bg:#ef4444;--rating-hover:#d82f36}
body .voca-modal .voca-card-actions .voca-card-rate button.rate-hard{--rating-bg:#f59e0b;--rating-hover:#d88707}
body .voca-modal .voca-card-actions .voca-card-rate button.rate-good{--rating-bg:#22c55e;--rating-hover:#159b48}
body .voca-modal .voca-card-actions .voca-card-rate button.rate-easy{--rating-bg:#3b82f6;--rating-hover:#2565d9}
html body .voca-modal .voca-card-actions .voca-card-rate button:is(.rate-again,.rate-hard,.rate-good,.rate-easy):is(:hover,:focus-visible,:active){background:var(--rating-hover)!important;color:#fff!important;border-color:transparent!important;filter:none}
html body .voca-modal .voca-card-actions .voca-card-rate button:is(:hover,:focus-visible,:active) :is(b,small){color:inherit;opacity:1}
html body .voca-modal .voca-card-actions .voca-card-tools button:hover{background:#e8eef6!important;color:#334155!important;border-color:#bdccde!important}
html[data-theme="dark"] body .voca-modal .voca-card-actions .voca-card-tools button:hover{background:#26364c!important;color:#e2e8f0!important;border-color:#52647c!important}
html body .voca-modal .voca-card-actions .voca-card-tools .tool-auto[aria-pressed="true"]:hover{background:#bbf7d0!important;color:#166534!important;border-color:#86efac!important}
html[data-theme="dark"] body .voca-modal .voca-card-actions .voca-card-tools .tool-auto[aria-pressed="true"]:hover{background:#14532d!important;color:#dcfce7!important;border-color:#33845b!important}

/* Shared control rhythm across all editions. */
#studyCenter .sc-card{min-width:0;box-sizing:border-box}
#studyCenter .sc-card-head{gap:8px;min-width:0;flex-wrap:wrap}
#studyCenter .sc-card-head h3{font-size:15px;line-height:1.4;overflow-wrap:anywhere}
#studyCenter .sc-mode-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
#studyCenter .sc-mode-list button{grid-template-columns:32px minmax(0,1fr);min-height:64px;align-content:center;column-gap:8px;padding:9px;min-width:0}
#studyCenter .sc-mode-list b,#studyCenter .sc-mode-list small{white-space:normal!important;overflow-wrap:anywhere;line-height:1.35;text-overflow:clip}
#studyCenter .sc-mode-list b{font-size:13px}#studyCenter .sc-mode-list small{font-size:11.5px}
#studyCenter .sc-ico{width:32px;height:32px;border-radius:9px}
#studyCenter #scSizeSlot select,#studyCenter .sc-mini{font:inherit;font-size:12px;font-weight:600;min-height:36px;box-sizing:border-box;border-radius:9px}
#studyCenter #scSizeSlot select{max-width:100%;padding:5px 9px;background:var(--card-bg,#fff);color:var(--text,#334155);border:1px solid var(--border,#d5deea)}
#studyCenter .sc-mode-foot{gap:8px}
#studyCenter .sc-review-books a{max-width:100%;min-width:0}
body.wb-tidy .jv-view-bar button{min-height:34px;box-sizing:border-box}
body.wb-tidy .word-table .action-button:focus-visible,body.wb-tidy .freq-band-box:focus-visible,body.wb-tidy .row-band-badge:focus-visible{outline:2px solid #648ab2;outline-offset:2px}
@media(min-width:641px) and (max-width:1020px){#studyCenter .sc-mode-list{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:640px){#studyCenter .sc-mode-list button{min-height:68px;padding:8px;column-gap:6px}#studyCenter #scSizeSlot select,#studyCenter .sc-mini{min-height:40px}body.wb-tidy .jv-view-bar button{min-height:38px}}
