/* Notebook-only geometry. The engine's inline 180px minimum needs !important;
   exclude fullscreen so its viewport/flex sizing remains authoritative. */
.theory-notebook { min-width:0; }
.theory-notebook .notebook-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; }
.theory-notebook .notebook-heading h2 { margin:0; }
.theory-notebook .notebook-navigation { display:flex; flex-wrap:wrap; gap:6px; }
.theory-notebook .notebook-links { font-size:12px; overflow-wrap:anywhere; }
.theory-notebook .notebook-editor { min-width:0; }
.theory-notebook .notebook-boundary { font-size:12px; margin:4px 0; }
.theory-notebook .notebook-boundary:empty { display:none; }
.theory-notebook .study-rich-editor:not(.rich-editor-fullscreen) .sun-editor-editable,
.theory-notebook .study-rich-editor:not(.rich-editor-fullscreen) .rich-editor-fallback {
  min-height:max(340px, 55dvh) !important;
}
.study-view .notebook-legacy { margin-top:12px; font-size:12px; }
.study-view .notebook-legacy > .rich-content { max-height:240px; overflow:auto; }
.study-view .actual-date-control { display:flex; align-items:center; gap:6px; }
.study-view .actual-date-control input { min-width:0; flex:1; }
.study-view .actual-date-control .btn { flex:none; min-height:32px; padding:4px 8px; }
.study-view .completion-controls > .actual-date-field { flex-basis:225px; }
@media (max-width:900px), (max-height:600px) {
  .theory-notebook .study-rich-editor:not(.rich-editor-fullscreen) .sun-editor-editable,
  .theory-notebook .study-rich-editor:not(.rich-editor-fullscreen) .rich-editor-fallback {
    min-height:max(280px, 55dvh) !important;
  }
}
@media (max-width:900px) {
  .study-view .actual-date-control .btn { min-height:40px; }
}
