/* Backend reuses CodePy's visual language; only route-specific layout rules. */
body #main-header .header-left { min-width: 0; }
body #main-header .header-actions { flex-wrap: wrap; }
#lesson-explanation { display: block; }
#backend-language, #backend-block-selector { min-height: 44px; color: var(--text-title); background: var(--bg-panel); border: 1px solid #8795a2; border-radius: 4px; padding: .5rem; font: inherit; }
#backend-block-selector { width: 100%; margin: .5rem 0 1rem; }
#backend-lesson-list { list-style: none; padding: 0; }
#backend-lesson-list button { width: 100%; text-align: left; min-height: 48px; padding: .8rem; margin: .2rem 0; white-space: normal; }
#backend-conflicts { overflow-wrap: anywhere; }
#backend-tools input, #backend-native-actions input { display: block; max-width: 100%; padding: .6rem 0; }
#backend-import-dialog button { margin: .4rem; min-height: 44px; }
body .hint-box[hidden] { display: none; }
body .hint-box:not([hidden]) { display: block; }
@media (max-width: 768px) {
  body #main-header { flex-wrap: wrap; height: auto; min-height: 64px; gap: .4rem; padding: .5rem; }
  body #main-header .header-actions { gap: .3rem; }
  #backend-tools-btn { max-width: 132px; white-space: normal; }
  body #main-header .file-name { display: none; }
  body #main-header button, body #main-header a { min-height: 44px; font-size: .8rem; }
  #backend-language { max-width: 92px; }
}
