body[data-view='notes'] .notes-view {
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: max(48px, env(safe-area-inset-bottom));
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

body[data-view='notes'] .notes-shell {
  width: min(100%, 1560px);
  height: auto;
  min-height: 100%;
  grid-template-rows: var(--header-mark-size) auto;
  align-content: start;
  transition: none;
}

body[data-view='notes'] .layout-stage {
  overflow: visible;
}

body[data-view='notes'] .home-feed-layout {
  height: auto;
  padding-bottom: 0;
  align-items: stretch;
}

body[data-view='notes'] .claus-about {
  display: block;
  height: auto;
  min-height: 0;
}

body[data-view='notes'] .claus-about .page-window {
  height: auto;
  overflow: visible;
}

body[data-view='notes'] .claus-about .page-flow {
  height: auto;
  column-count: auto;
  column-gap: normal;
  transform: none !important;
}

body[data-view='notes'] .claus-about > .page-controls {
  display: none;
}

body[data-view='notes'] .home-journal {
  margin-top: 44px;
  font-family: var(--mono-font);
  font-size: clamp(17px, 1.25vw, 18px);
  line-height: 1.75;
}

.home-journal, .home-journal * {
  color: var(--text-white);
  font-family: var(--mono-font);
}

.home-journal #log-heading {
  color: var(--monitor-accent);
  font-size: 25px;
  font-weight: 600;
}

.home-journal .log-entry-heading, .home-journal .log-list p {
  font-size: inherit;
  line-height: inherit;
}

body[data-view='notes'] .home-journal #journal-flow {
  height: auto;
  max-height: var(--journal-view-height, 70em);
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 12px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--monitor-muted) transparent;
  overscroll-behavior: auto;
  touch-action: pan-y;
  outline: none;
}

.home-journal:has(#journal-flow:focus-visible) #log-heading {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.token-heading-row { display: flex; align-items: baseline; gap: 12px; }
.local-token-symbol { color: var(--monitor-accent); font-size: 16px; font-weight: 500; }

body[data-view='notes'] .home-journal .log-heading {
  margin-bottom: 24px;
}

body[data-view='notes'] .home-feed-layout > .monitor-panel {
  height: auto;
  min-height: 0;
  align-self: stretch;
  grid-template-rows: auto minmax(0, 1fr);
}

body[data-view='notes'] .monitor-panel .monitor-log {
  contain: size;
  height: auto;
  min-height: 0;
}

@media (max-width: 850px) {
  body[data-view='notes'] .home-journal {
    font-size: 16px;
  }

  body[data-view='notes'] .notes-shell {
    grid-template-rows: auto auto;
  }

  body[data-view='notes'] .home-feed-layout > .monitor-panel {
    grid-template-rows: auto auto;
    align-self: auto;
  }

  body[data-view='notes'] .monitor-panel .monitor-log {
    contain: none;
    height: clamp(280px, 54dvh, 520px);
  }
}
