/* ============================================================
   DIARY SHEET FIT — over css/diary-style.css.
   The notebook was sized with raw vh/vw: the page runs at zoom
   1.25, so 90vh overshot the screen — a full diary ran off the
   bottom, and the CLOSE button (absolute at the top of the sheet,
   scrolling with it) left with the first scroll. The sheet sizes
   off the pre-divided vars now, and it is a column: CLOSE in a
   fixed head row, the content scrolling beneath it.
   ============================================================ */
#diaryPanel .diary-notebook {
  max-height: calc(var(--vh100, 100vh) * 0.9);
  max-width: calc(var(--vw100, 100vw) * 0.95);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#diaryPanel .diary-close-btn {
  position: static;
  align-self: flex-end;
  flex: none;
  margin: 12px 14px 0 0;
}
#diaryPanel .diary-content-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  /* was -30px, for a CLOSE that stood in its own head row; panel-close.css
     (2026-10-03) made it absolute, the row went, and the -30px pulled the
     page 33px past the sheet's top edge — CLASSIFIED — FIELD JOURNAL cut
     in half (the author, 2026-10-15) */
  margin-top: 0;
  padding-top: 1.5rem;
}
