.library-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:30px;align-items:start}
.library-main,.direction-panel{min-width:0}
.library-main .library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.direction-panel{border-left:1px solid var(--line);padding:2px 0 20px 26px}
.direction-panel h2{font-size:23px;font-weight:550;margin:6px 0 18px}
.direction-panel h3{font-size:14px;font-weight:550;margin:22px 0 8px}
.direction-modes{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.direction-modes button{font-size:12px;padding:9px 7px}
.direction-modes button[aria-pressed=true]{color:#fff7db;border-color:#f4e6b79c;background:#ffffff18}
.direction-form .form-field{margin:14px 0 10px}
.direction-form button{width:100%;font-size:12px}
.book-bank-action{width:100%;margin-top:10px;font-size:12px;background:#ffffff12!important;border-color:#b9dbff78!important}
.book-bank-hint{margin:8px 0 12px;line-height:1.6}
.direction-presets{display:flex;flex-wrap:wrap;gap:6px;margin:13px 0 18px}
.direction-presets button{font-size:10px;padding:5px 8px;min-height:30px}
.direction-result{display:flex;align-items:start;justify-content:space-between;gap:8px;padding:11px 0;border-bottom:1px solid var(--line);font-size:12px;overflow-wrap:anywhere}
.direction-result>span{min-width:0}
.direction-result small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:var(--muted);font-size:10px;line-height:1.5;margin-top:4px}
.direction-result button{flex:none;white-space:nowrap}
.direction-results{border-top:1px solid var(--line);padding-top:2px}
.category-progress{border-top:1px solid var(--line);margin-top:22px;padding-top:4px}
.category-progress .section-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.category-progress .section-title h3{margin-bottom:2px}
.category-progress .section-title span{font-size:10px;color:var(--muted)}
.progress-row{padding:13px 0;border-bottom:1px solid var(--line)}
.progress-row>div:first-child{display:flex;justify-content:space-between;gap:8px;font-size:11px}
.progress-row strong{font-weight:500;overflow-wrap:anywhere}
.progress-row>div:first-child span{color:var(--teal);white-space:nowrap}
.mini-progress{height:5px;background:#39435a;border-radius:4px;overflow:hidden;margin:8px 0 4px}
.mini-progress i{display:block;height:100%;background:var(--teal)}
.progress-actions{display:flex;gap:8px}
.progress-actions .link{font-size:10px}
.finished-groups,.archived-topics{margin-top:20px;color:var(--muted);font-size:12px}
.finished-groups summary,.archived-topics summary{cursor:pointer}
.archived-row{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:7px 0;border-bottom:1px solid var(--line)}
.archived-row span{overflow-wrap:anywhere}
.book-review-list{display:grid;gap:12px;max-height:min(58vh,620px);overflow:auto;padding-right:4px;margin:16px 0}
.book-review-item{border:1px solid var(--line);border-radius:8px;padding:14px;background:#ffffff08}
.book-review-select{display:flex;align-items:flex-start;gap:10px;line-height:1.5}
.book-review-select input{margin-top:4px;flex:none}
.book-review-select span{display:grid;gap:2px;overflow-wrap:anywhere}
.book-review-select b{font-size:14px;font-weight:600}
.book-review-select small,.book-review-item>small{color:var(--muted);font-size:11px}
.book-review-item .form-field{margin:10px 0}
.book-review-item input{font-size:12px}
.book-review-item p{font-size:12px;line-height:1.65;margin:7px 0;color:var(--muted);overflow-wrap:anywhere}
.book-review-item p b{color:var(--text);font-weight:500}
.book-review-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
@media(max-width:1000px){.library-layout{grid-template-columns:minmax(0,1fr) 270px;gap:20px}.direction-panel{padding-left:18px}.library-main .library-grid{grid-template-columns:1fr}}
@media(max-width:760px){.library-layout{display:flex;flex-direction:column-reverse;gap:24px}.direction-panel{width:100%;border-left:0;border-bottom:1px solid var(--line);padding:0 0 20px}.library-main{width:100%}.library-main .library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:460px){.library-main .library-grid{grid-template-columns:1fr}.direction-panel h2{font-size:20px}}
