/* Additive layout changes; original controls remain available. */
body{background:#eef3f7!important;color:#19344d}header{background:transparent!important;color:#19344d!important}header h1,header .sub{color:#19344d!important}.card{border:1px solid #dde6ee!important;box-shadow:none!important;border-radius:18px!important}.collection-select{display:flex;gap:8px;margin:16px 0;flex-wrap:wrap}.collection-select button{min-height:44px;padding:9px 14px;border-radius:10px;border:1px solid #d5e3e7;background:white;color:#35576a}.collection-select button.selected{background:#087f78;color:white}.test-card{background:white!important;border:1px solid #dce6ef!important;border-radius:14px!important;min-height:108px}.test-card.active{background:#e8f6f1!important;border-color:#087f78!important}.review-list{max-height:365px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-color:#a6bbc4 #eef3f7}.review-list>.review-item{min-height:64px;flex-shrink:0}.review-queue-list{max-height:150px;overflow:auto}.dock-mode-controls{display:flex;align-items:center;justify-content:flex-end;gap:5px;margin:0 0 9px}.dock-mode-controls span{margin-right:auto;font-size:10px;color:#93abc4}.dock-mode-controls button{min-height:36px;padding:7px 12px;background:#223b55;border:0;border-radius:8px;color:#bbcbdc}.dock-mode-controls button.selected{background:#087f78;color:white}#bar{max-height:60dvh;overflow:auto;border-radius:18px!important;background:#10243e!important}.siwon-source{padding:15px;background:white;color:#25435b;border-radius:10px}.siwon-source-label{font-size:11px;color:#087f78;margin-bottom:12px}.siwon-source pre{font:inherit;font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.siwon-source summary{cursor:pointer;padding:12px;background:#edf6f3;border-radius:8px}@media(max-width:760px){.test-library{grid-template-columns:repeat(2,minmax(0,1fr))}.review-list{max-height:350px}#bar{max-height:56dvh}.dock-mode-controls button{min-height:40px}}

#bar #bar-flags{display:flex!important;gap:6px;flex-wrap:wrap}#bar #bar-flags button{width:auto;min-width:64px;min-height:40px;font-size:12px;padding:6px 9px}.player-detail-bar{display:none!important}

#bar #study-open{position:static!important;transform:none!important;left:auto;top:auto;width:auto!important;height:auto!important;min-height:40px;padding:8px 12px!important;border-radius:9px!important;display:block!important;font-size:12px;color:#fff!important;background:#1d5269!important;box-shadow:none;margin-right:auto}
#bar #study-open:active{transform:none!important}.dock-mode-controls>span{display:none}.dock-mode-controls{position:sticky;top:0;background:#10243e;z-index:4;padding:4px 0;flex-wrap:wrap}
#library-status{padding:9px 12px;margin:8px 0;color:#155e63;background:#e5f3ef;border-radius:9px;font-size:13px;overflow-wrap:anywhere}#library-status:empty{display:none}#library-status.err{background:#fff0ed;color:#a23421}
.siwon-original-page{width:100%;height:auto;background:white}.source-association{display:grid;gap:9px;margin-top:16px;color:#25435b}.source-association select,.source-association button{padding:12px;border:1px solid #b7cbd7;border-radius:9px;font:inherit}.source-association small,.vocab-help{font-size:12px;line-height:1.6;color:#586f82}
#review-words{max-height:none;overflow:visible}#review-words .wb-list{max-height:365px;overflow:auto}.sx-en .sx-w{cursor:pointer}.sx-voc .vt{min-height:38px;cursor:pointer}
.siwon-choices{display:grid;gap:8px;margin:12px 0}.siwon-choices button{display:flex;align-items:flex-start;gap:12px;text-align:left;padding:12px;border-radius:10px;border:1px solid #d7e1ec;background:#fff;color:#19344d;font:inherit;line-height:1.5;cursor:pointer}.siwon-choices button.chosen{border-color:#087f78;background:#eaf8f3}.siwon-choices button.correct{box-shadow:inset 4px 0 #087f78}.siwon-choices button b{flex:0 0 22px}.siwon-translation{padding:12px;background:#f1f5fa;border-radius:10px;font-size:13px;line-height:1.6}.siwon-translation summary{cursor:pointer}.siwon-content-note{font-size:11px;color:#6a7e91;line-height:1.5}#bk-tools[hidden]{display:none!important}
.study-section-switch{display:none}@media(max-width:760px){.study-section-switch{display:flex;gap:6px;margin:0 0 10px;flex:0 0 auto}.study-section-switch button{flex:1;border:1px solid #d0dfeb;border-radius:9px;background:#fff;color:#385675;min-height:42px;font-weight:700}.study-section-switch button.selected{background:#087f78;color:#fff;border-color:#087f78}[data-study-section=question] .sx-left,[data-study-section=passage] .sx-right,[data-study-section=explain] .sx-right,[data-study-section=passage] #sx-vocab,[data-study-section=passage] #sx-expl-wrap,[data-study-section=explain] #sx-passage{display:none!important}}
.wave-center-toggle{background:#203d57;color:#d8f5ed;border:1px solid #3f6575;border-radius:9px;padding:9px 12px;min-height:40px;margin-bottom:8px}.wave-center-toggle[aria-pressed=true]{background:#145f64}
