/* Compact memory subpages share the river entrance; all data and review controls
   continue to use their existing renderers. No rules apply outside this mode. */
.mood-panel.memory-waterfront-mode {
  --memory-inner-wave: url('/static/assets/memory-waterfront/card-ripple.svg');
  --memory-inner-stone: url('/static/assets/memory-waterfront/stone-top.svg');
}
.mood-panel.memory-waterfront-mode .mood-header .panel-header-title {
  min-width: 0;
  font: 600 18px/1.5 var(--font-album-serif);
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}
.mood-panel.memory-waterfront-mode .memory-inner-heading { display: none; }
.mood-panel.memory-waterfront-mode .mood-body:has(>.memory-inner-heading) {
  gap: 16px;
  padding-top: 16px;
}
.mood-panel.memory-waterfront-mode .mood-body:has(>.memory-inner-heading)>.mood-readonly-note {
  text-align: left;
  letter-spacing: 0;
  line-height: 1.8;
}
.mood-panel.memory-waterfront-mode .mood-body:has(>.memory-inner-heading) .memory-directory-heading>.memory-directory-open {
  font-size: 17px;
  line-height: 1.7;
}
.mood-panel.memory-waterfront-mode .mood-body:has(>.memory-inner-heading) .memory-count-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 12px;
  font-size: 12px;
  line-height: 1.8;
}
.mood-panel.memory-waterfront-mode .mood-body:has(>.memory-inner-heading) .memory-kind-tag {
  flex: none;
}
.mood-panel.memory-waterfront-mode .memory-fact-section { margin-top: 10px; }
.mood-panel.memory-waterfront-mode .memory-fact-section-title {
  position: relative;
  padding-bottom: 15px;
  border-bottom: 0;
  font: 600 13px/1.7 var(--font-album-serif);
  letter-spacing: .12em;
}
.mood-panel.memory-waterfront-mode .memory-fact-section-title::after,
.mood-panel.memory-waterfront-mode .memory-inner-workspace .memory-workspace-tabs::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 7px;
  background: var(--memory-inner-wave) center/100% 100% no-repeat;
  opacity: .6;
  pointer-events: none;
}
.mood-panel.memory-waterfront-mode .memory-fact-section>.entity-fact {
  margin: 10px 0 !important;
}
.mood-panel.memory-waterfront-mode :is(.entity-fact,.entity-assertion-source)>.memory-workflow-text {
  border-left: 1px solid var(--border-strong);
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  padding: 3px 0 3px 14px;
  font: 400 14px/1.95 var(--font-album-serif);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mood-panel.memory-waterfront-mode .memory-strand-source {
  position: relative;
  margin: 12px 0 0;
  padding-left: 34px;
  min-width: 0;
}
.mood-panel.memory-waterfront-mode .memory-strand-source::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 24px;
  height: 18px;
  background: var(--memory-inner-stone) center/contain no-repeat;
  pointer-events: none;
}
.mood-panel.memory-waterfront-mode .memory-strand-source::after {
  content: '';
  position: absolute;
  top: 33px;
  bottom: -12px;
  left: 11px;
  border-left: 1px dotted var(--border-strong);
  pointer-events: none;
}
.mood-panel.memory-waterfront-mode .memory-strand-source:last-child::after { display: none; }
.mood-panel.memory-waterfront-mode .memory-strand-source>.memory-workflow-text {
  margin: 4px 0 8px;
  padding: 0;
  background: transparent;
  color: var(--text-primary);
  font: 400 14px/1.95 var(--font-album-serif);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mood-panel.memory-waterfront-mode .strand-detail .memory-strand-source>summary {
  min-height: 44px;
  padding: 8px 0;
  line-height: 1.8;
}
.mood-panel.memory-waterfront-mode .memory-inner-workspace-tools {
  min-height: 44px;
  justify-content: flex-end;
  border: 0;
  padding: 0;
  margin: 0;
}
.mood-panel.memory-waterfront-mode .memory-inner-workspace .memory-workspace-tabs {
  position: relative;
  margin: 8px 0 18px;
  padding-bottom: 8px;
  border-bottom: 0;
}
.mood-panel.memory-waterfront-mode .memory-inner-workspace h3 {
  font: 600 17px/1.7 var(--font-album-serif);
}
.mood-panel.memory-waterfront-mode .memory-inner-workspace .memory-workflow-text {
  font: 400 14px/1.95 var(--font-album-serif);
  color: var(--text-primary);
}
.mood-panel.memory-waterfront-mode .memory-inner-workspace .memory-workspace-details {
  border-color: var(--border-light);
}
.mood-panel.memory-waterfront-mode .memory-inner-workspace .memory-workspace-decision {
  padding-top: 14px;
  margin-top: 14px;
}
.mood-panel.memory-waterfront-mode :is(.memory-inner-workspace,.memory-fact-section,.strand-detail) :is(button,summary) {
  scroll-margin-top: 90px;
}
@media (max-width:760px), (max-width:960px) and (max-height:520px) {
  .mood-panel.memory-waterfront-mode .mood-body:has(>.memory-inner-heading) { gap: 12px; }
  .mood-panel.memory-waterfront-mode .memory-strand-source { padding-left: 30px; }
}
@media (prefers-color-scheme:dark) {
  .mood-panel.memory-waterfront-mode .memory-fact-section-title::after,
  .mood-panel.memory-waterfront-mode .memory-inner-workspace .memory-workspace-tabs::after,
  .mood-panel.memory-waterfront-mode .memory-strand-source::before { filter: invert(.8); }
}
