/* Screen controls share one sidebar; worksheet and print styles stay separate. */
@media screen {
  .spelling-sidebar-workspace{grid-template-columns:340px minmax(0,1fr);align-items:start}
  .spelling-sidebar-workspace>.settings-panel{position:static;max-height:none;overflow:hidden;min-width:0}
  .spelling-sidebar-workspace .settings-head{padding:18px 17px 15px}
  .spelling-sidebar-workspace .settings-panel .setup-card.selection-shell{margin:0;padding:16px;border:0;border-bottom:1px solid #e7e4dc;border-radius:0;box-shadow:none;background:#fff}
  .spelling-sidebar-workspace .settings-panel .setup-head{display:block;margin:0 0 11px}
  .spelling-sidebar-workspace .settings-panel .step-title{align-items:flex-start;gap:9px}
  .spelling-sidebar-workspace .settings-panel .step-number{width:23px;height:23px;margin-top:1px}
  .spelling-sidebar-workspace .settings-panel .setup-head h2{font-size:14px;line-height:1.4}
  .spelling-sidebar-workspace .settings-panel .setup-head p{font-size:10px;line-height:1.5;margin-top:3px}
  .spelling-sidebar-workspace .settings-panel .group-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .spelling-sidebar-workspace .settings-panel .group-button{min-height:36px;padding:8px 5px;font-size:11px}
  .spelling-sidebar-workspace .settings-panel .category-tools{display:flex;flex-direction:column;align-items:stretch;min-width:0;width:100%;margin-top:12px;gap:7px}
  .spelling-sidebar-workspace .settings-panel .category-tools .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .spelling-sidebar-workspace .settings-panel .category-tools input{width:100%;max-width:100%;min-width:0;height:37px;font-size:12px}
  .spelling-sidebar-workspace .settings-panel .package-count{font-size:10px;line-height:1.4;color:#687670}
  .spelling-sidebar-workspace .settings-panel .category-grid{grid-template-columns:minmax(0,1fr);align-content:start;gap:6px;height:218px;min-height:218px;max-height:218px;margin-top:10px;padding:2px 6px 3px 2px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
  .spelling-sidebar-workspace .settings-panel .category-card{min-height:48px;width:100%;padding:8px 10px;text-align:left;overflow-wrap:break-word}
  .spelling-sidebar-workspace .settings-panel .category-card b{font-size:11px;line-height:1.35;margin-bottom:3px}
  .spelling-sidebar-workspace .settings-panel .category-card small{font-size:10px;line-height:1.35}
  .spelling-sidebar-workspace .settings-panel .category-empty{font-size:12px;padding:18px 8px}
  .spelling-sidebar-workspace .settings-practice{margin:0;padding:13px 16px;border-bottom:1px solid #e7e4dc;background:#fafbf8}
  .spelling-sidebar-workspace .settings-practice summary{font-size:11px;line-height:1.5;font-weight:700;color:#315b48;cursor:pointer}
  .spelling-sidebar-workspace .settings-practice .practice-card{min-height:0;padding:10px 0 0;background:transparent}
  .spelling-sidebar-workspace .settings-practice .practice-card b,.spelling-sidebar-workspace .settings-practice .practice-card small{display:block;font-size:10px;line-height:1.6}
  .spelling-sidebar-workspace .settings-practice .practice-card small{color:#687670;margin-top:4px}
  .spelling-sidebar-workspace .settings-body{padding:16px}
  .spelling-sidebar-workspace .preview-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
  .spelling-sidebar-workspace .preview-toolbar span{min-width:0;overflow-wrap:break-word}
}
@media screen and (min-width:901px) and (max-width:1200px){
  .spelling-sidebar-workspace{grid-template-columns:300px minmax(0,1fr);gap:16px}
}
@media screen and (max-width:900px){
  .spelling-sidebar-workspace{display:block}
  .spelling-sidebar-workspace>.settings-panel{margin-bottom:18px}
  .spelling-sidebar-workspace .settings-panel .category-grid{height:200px;min-height:200px;max-height:200px}
}
