.capture-memory { flex: 0 0 auto; margin: 12px 20px 0; padding-left: 12px; border-left: 3px solid #89e0ee; min-width: 0; }
.memory-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 30px; }
#memory-label { color: #c0ff39; font-size: 11px; font-weight: 750; }
#memory-close { color: #eee; background: transparent; width: 44px; height: 44px; margin-right: -10px; display: grid; place-items: center; }
#memory-close .icon { width: 15px; height: 15px; }
#memory-message { margin: 2px 0 0; color: #f4f4ee; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; max-height: 81px; overflow-y: auto; }
.memory-links { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
#memory-info { background: none; color: #b3b3bc; font-size: 11px; text-decoration: underline; padding: 4px 0; min-height: 44px; }
#memory-retry { width: 44px; height: 44px; background: none; padding: 5px; }
#memory-retry .icon { width: 20px; height: 20px; }
#memory-reopen { color: #b5dbe1; display: flex; align-items: center; gap: 8px; background: transparent; min-height: 44px; font-size: 12px; }
#memory-reopen .icon { width: 20px; height: 20px; }
.capture-memory [hidden], .memory-overlay[hidden] { display: none !important; }
#capture-screen .companion { bottom: -8px; animation: memory-peek 4s ease-in-out infinite; }
#capture-screen .capture-stage { min-height: 120px; }
.memory-overlay { position: absolute; inset: 0; background: #000a; z-index: 50; display: flex; align-items: flex-end; }
.memory-sheet { width: 100%; max-height: calc(100% - 65px); display: flex; flex-direction: column; background: #1c1c21; border-top: 1px solid #59595f; border-radius: 8px 8px 0 0; }
.memory-sheet header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px 0 20px; }
.memory-sheet h2 { font-size: 17px; margin: 0; }
.memory-sheet h3 { font-size: 15px; line-height: 1.5; color: var(--pink); margin: 20px 0 10px; }
.memory-sheet .icon-button { background: transparent; }
.memory-sheet .icon-button .icon { width: 20px; height: 20px; }
.memory-info-scroll { overflow-y: auto; min-height: 0; padding: 0 20px 30px; overscroll-behavior: contain; }
.memory-info-scroll p { margin: 12px 0; font-size: 13px; line-height: 1.75; color: #d6d6dc; overflow-wrap: anywhere; }
#memory-source { border-bottom: 1px solid var(--line); padding-bottom: 4px; }
@keyframes memory-peek { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-4px); } }
.paused #capture-screen .companion, .document-hidden #capture-screen .companion, #capture-column[hidden] .companion { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { #capture-screen .companion { animation: none; } }
@media (max-height: 650px) { body.export .capture-memory { margin-top: 8px; } body.export #memory-message { font-size: 12px; max-height: 74px; } body.export #capture-screen .capture-controls { flex-basis: 87px; } body.export #capture-screen .capture-stage { min-height: 70px; } }
