/* One conversation, remembered as useful notes. The parent owns scene opacity. */
.memory-scene { container-type: inline-size; }
.memory-content { position: absolute; top: 12%; left: 8%; right: 8%; height: 76%; color: #eceeed; }
.memory-content h3, .memory-content p, .memory-content blockquote { margin: 0; }
.memory-content svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.memory-view { position: absolute; inset: 0 0 14px; display: flex; flex-direction: column; }
.memory-view:not(.memory-call) { visibility: hidden; opacity: 0; }
.memory-title { font-size: clamp(23px,7.4cqw,29px); line-height: 1.12; letter-spacing: -.045em; font-weight: 400; }
.memory-source { color: #98a3aa; font-size: clamp(11px,3.6cqw,13px); line-height: 1.4; }
/* Familiar active-call composition; the Raven layer remains visually separate. */
.memory-call { text-align: center; }
.memory-call-header { position: absolute; top: calc(46% - 20px); left: 0; right: 0; }
.memory-call .memory-title { font-size: clamp(28px,8.7cqw,34px); line-height: 1.12; letter-spacing: -.035em; }
.memory-call-timer { margin-top: 7px !important; color: #a8afb3; font-size: clamp(13px,4.2cqw,16px); line-height: 1.2; font-variant-numeric: tabular-nums; }
.memory-call-body { position: absolute; top: 0; left: 0; right: 0; }
.memory-call-overlay { width: 100%; text-align: left; }
.memory-overlay-heading { display: flex; align-items: center; gap: 14px; }
.memory-overlay-heading img { width: 44px; height: 44px; flex-shrink: 0; }
.memory-overlay-note { height: 56px; margin-top: 22px; }
.memory-call-captured { display: flex; align-items: flex-start; gap: 11px; color: #e3e7e9; font-size: clamp(14px,4.4cqw,17px); line-height: 1.45; letter-spacing: -.015em; }
.memory-call-captured img { width: 14px; height: 14px; flex-shrink: 0; margin-top: 5px; margin-left: 8px; }
.memory-call-actions { position: absolute; left: 0; right: 0; bottom: -14%; mask-image: linear-gradient(#000 0%,#000 68%,#0009 87%,transparent 100%); }
.memory-call-controls { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px 15px; max-width: 268px; margin: auto; }
.memory-call-control { display: flex; align-items: center; flex-direction: column; gap: 6px; color: #eceeef; font-size: 11px; line-height: 1.2; }
.memory-call-circle { display: grid; place-items: center; width: clamp(42px,14cqw,54px); aspect-ratio: 1; border-radius: 50%; background: #292c2f; box-shadow: inset 0 1px #ffffff10; }
.memory-call-circle svg { width: 22px; height: 22px; stroke-width: 1.8; }
.memory-call-circle .memory-keypad { fill: currentColor; stroke: none; width: 20px; height: 20px; }
.memory-call-end { display: grid; place-items: center; width: 54px; aspect-ratio: 1; margin: 17px auto 0; border-radius: 50%; background: #e74641; color: #fff; }
.memory-call-end svg { width: 27px; height: 27px; fill: currentColor; stroke: none; }
.memory-status { display: flex; justify-content: center; align-items: center; gap: 8px; color: #bac6ce; font-size: clamp(11px,3.5cqw,13px); line-height: 1.3; }
.memory-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 20px; color: #becdd7; }
.memory-wave i { display: block; width: 2px; border-radius: 2px; background: currentColor; }
.memory-meeting-header .memory-source { margin-top: 8px; }
.memory-meeting .memory-status { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 24px; }
.memory-wave--conversation {
  display: block;
  width: 100%;
  height: 48px;
  margin-inline: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.memory-wave-track {
  display: flex;
  width: 200%;
  height: 100%;
  transform: translateX(-50%);
  animation: memory-recording-travel 4.8s linear 3 both paused;
}
.memory-wave-group {
  display: grid;
  grid-template-columns: repeat(35, minmax(0, 1fr));
  place-items: center;
  flex: 0 0 50%;
  min-width: 0;
  height: 100%;
}
.memory-wave--conversation i {
  width: 2px;
  height: 14px;
  animation: none;
  transform: none;
  opacity: .88;
}
.memory-wave--conversation i:nth-child(2n) { height: 24px; }
.memory-wave--conversation i:nth-child(3n) { height: 38px; }
.memory-wave--conversation i:nth-child(4n) { height: 18px; }
.memory-wave--conversation i:nth-child(5n) { height: 46px; }
.memory-wave--conversation i:nth-child(7n) { height: 30px; }
.memory-overlay-heading .memory-wave--call { flex: 1; min-width: 0; height: 36px; }
.memory-wave--call .memory-wave-group { transform: scaleY(.7); }
.is-call-live .memory-call .memory-wave-track, .is-meeting-live .memory-meeting .memory-wave-track { animation-play-state: running; }
@keyframes memory-recording-travel {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .memory-wave-track { animation: none; transform: none; }
}

.memory-actions-title { margin: 28px 0 0; color: #98a7b1; font-size: 13px; line-height: 1.4; font-weight: 400; }
.memory-notes { display: flex; flex-direction: column; gap: 23px; margin: 15px 0 0; padding: 0; list-style: none; }
.memory-note { display: grid; grid-template-columns: minmax(0,1fr) max-content; align-items: center; gap: 12px; color: #e3e7e9; font-size: clamp(16px,5.3cqw,21px); line-height: 1.35; letter-spacing: -.025em; }
.memory-note-action { display: inline-flex; align-items: center; justify-self: end; min-height: 27px; padding: 4px 12px; border: 1px solid #ffffff24; border-radius: 999px; background: #ffffff06; color: #cbd2d6; font-size: 11px; line-height: 1.4; letter-spacing: 0; white-space: nowrap; }
.is-compact .memory-content { top: 11%; height: 68%; }

.is-compact .memory-call-header { top: calc(35% - 16px); }
.is-compact .memory-call-body { top: -12px; }
.is-compact .memory-call .memory-title { font-size: 28px; }
.is-compact .memory-call-timer { margin-top: 4px !important; font-size: 12px; }
.is-compact .memory-overlay-heading { gap: 12px; }
.is-compact .memory-overlay-heading img { width: 36px; height: 36px; }
.is-compact .memory-overlay-note { height: 44px; margin-top: 16px; }
.is-compact .memory-call-captured { gap: 9px; font-size: 14px; line-height: 1.4; }
.is-compact .memory-call-captured img { width: 14px; height: 14px; margin-top: 4px; }
.is-compact .memory-call-actions { bottom: -5%; }
.is-compact .memory-call-controls { gap: 10px 12px; max-width: 214px; }
.is-compact .memory-call-control { gap: 4px; font-size: 9px; }
.is-compact .memory-call-circle { width: 34px; }
.is-compact .memory-call-circle svg { width: 18px; height: 18px; }
.is-compact .memory-call-circle .memory-keypad { width: 16px; height: 16px; }
.is-compact .memory-call-end { width: 38px; margin-top: 12px; }
.is-compact .memory-call-end svg { width: 22px; height: 22px; }
.is-compact .memory-meeting .memory-status { margin-top: 20px; gap: 8px; }
.is-compact .memory-actions-title { margin-top: 16px; }
.is-compact .memory-notes { margin-top: 10px; gap: 14px; }
.is-compact .memory-note { gap: 10px; }
.is-compact .memory-note-action { min-height: 25px; padding: 3px 10px; }
@container (max-width: 360px) {
  .memory-call-controls { row-gap: 12px; }
  .memory-call-end { width: 50px; margin-top: 14px; }
}
@container (max-width: 300px) {
  .memory-note { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .memory-wave i { animation: none; } }
.memory-reader { max-width: 390px; margin-top: 30px; color: #b6c2ca; }
.memory-reader p { font-size: 16px; line-height: 1.65; }
.memory-reader p + p { margin-top: 16px; }
.memory-reader strong { color: #e5e9eb; font-weight: 400; }
.memory-reader ul { margin: 16px 0; padding-left: 20px; }
.memory-reader li { margin-top: 9px; line-height: 1.5; }
