/* A quieter editor: content is primary, navigation remains compact and touchable. */
#editor.knowledge-dialog:has(.knowledge-unit-editor) .dialog-header{padding-block:16px;min-height:0}
#editor.knowledge-dialog .knowledge-unit-sidebar{border:0;background:transparent;padding:0;border-radius:0}
#editor .knowledge-unit-sidebar h3{font-size:18px;line-height:1.35;margin:4px 0 16px}
#editor .knowledge-unit-sidebar .knowledge-unit-eyebrow{font-size:10px;letter-spacing:.08em}
#editor .knowledge-unit-sidebar nav button{align-items:center;flex-direction:row;min-height:48px;gap:10px;white-space:normal}
#editor .knowledge-unit-sidebar nav button b{flex:0 0 24px;font-size:12px}
#editor .knowledge-unit-sidebar nav button[aria-current=step]{background:color-mix(in srgb,var(--petrol) 12%,var(--white));border-color:var(--petrol);box-shadow:none}
#editor .knowledge-unit-main>section{gap:18px}
#editor .knowledge-unit-main .onboarding-editor-section>h2{font-size:20px;margin:0 0 14px}
#editor .knowledge-unit-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;border-radius:12px}
#editor .knowledge-unit-item>button{border:0;border-radius:0;margin:0;padding:12px;min-height:70px;align-items:center;box-shadow:none}
#editor .knowledge-unit-item:has([aria-pressed=true]){border-color:var(--petrol);background:color-mix(in srgb,var(--petrol) 10%,var(--white))}
#editor .knowledge-unit-item [aria-pressed=true]{background:transparent;box-shadow:inset 3px 0 var(--petrol)}
#editor .knowledge-unit-item .knowledge-unit-move{align-self:center;flex-direction:column;gap:2px;padding:4px;border-left:1px solid var(--line)}
#editor .knowledge-unit-item .knowledge-unit-move button{width:36px;min-width:36px;min-height:36px;height:36px;padding:4px;border:0;border-radius:7px;margin:0;font-size:18px;line-height:1}
#editor .knowledge-unit-item-label{font-size:14px;line-height:1.35}
#editor .knowledge-unit-item small{font-size:11px;line-height:1.3}
#editor .knowledge-unit-item>button>span:last-child{gap:3px}
#editor.knowledge-dialog .knowledge-unit-form details.knowledge-unit-metadata{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 0 18px}
#editor .knowledge-unit-metadata summary{font-size:14px}
#editor .knowledge-unit-main .onboarding-lesson-editor-list>fieldset{border:0;padding:0;margin:0;border-radius:0;gap:16px}
#editor .knowledge-unit-main .onboarding-lesson-editor-list>fieldset>legend{font-size:13px;color:var(--muted);padding:0;margin-bottom:12px}
#editor .knowledge-unit-form :is(input,textarea,select){max-width:100%;min-width:0;box-sizing:border-box}
#editor .knowledge-unit-form select{padding-right:48px;background-position:right 18px center}
#editor .knowledge-unit-form label{min-width:0}
@media(max-width:1000px){
 #editor.knowledge-dialog .knowledge-unit-editor{gap:18px}
 #editor .knowledge-unit-sidebar nav{gap:6px;grid-template-columns:1fr 1.35fr 1.1fr}
 #editor .knowledge-unit-sidebar h3{margin-bottom:12px}
 #editor .knowledge-unit-sidebar nav button{justify-content:center;gap:6px;padding:9px 6px;font-size:12px;min-height:46px;border-radius:10px}
 #editor .knowledge-unit-sidebar nav button b{width:20px;height:20px;flex-basis:20px;font-size:11px}
 #editor .knowledge-unit-sidebar nav button span{display:block;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.25}
 #editor .knowledge-unit-sidebar nav button small{display:none}
 #editor .knowledge-unit-items{grid-template-columns:1fr;gap:8px;padding:0;max-height:none;overflow:visible}
 #editor .knowledge-unit-item .knowledge-unit-move{flex-direction:row;border-left:0;padding:6px}
 #editor .knowledge-unit-item .knowledge-unit-move button{width:44px;min-width:44px;min-height:44px;height:44px}
 #editor .knowledge-unit-split{gap:20px}
 #editor.knowledge-dialog:has(.knowledge-unit-editor) .dialog-footer{gap:8px;padding:12px 16px max(12px,env(safe-area-inset-bottom))}
 #editor.knowledge-dialog:has(.knowledge-unit-editor) .dialog-footer button{font-size:13px;line-height:1.3;min-height:48px;padding:10px 12px;margin:0}
}
@media(max-width:380px){
 #editor .knowledge-unit-sidebar nav button{flex-direction:column;gap:4px;padding:8px 4px;font-size:11px}
 #editor .knowledge-unit-item>button{padding:10px 8px}
 #editor .knowledge-unit-item .knowledge-unit-move{padding:3px;gap:0}
}
