.koi-memory-search{display:flex;flex-direction:column;min-height:0;flex:1 1;overflow:hidden;color:var(--koi-ink);font:inherit}.koi-memory-search a,.koi-memory-search button{font:inherit;color:inherit;border:0;box-shadow:none;text-decoration:none}.koi-memory-filters{display:flex;gap:5px;padding:4px 14px 12px;overflow-x:auto;flex-shrink:0}.koi-memory-filters button{padding:7px 11px;border-radius:999px;white-space:nowrap;background:transparent;color:var(--koi-muted);cursor:pointer;transition:background .16s,color .16s}.koi-memory-filters button[aria-pressed=true]{background:var(--koi-panel-soft);color:var(--koi-ink)}.koi-memory-status{display:flex;justify-content:space-between;gap:12px;padding:0 24px 12px}.koi-memory-notice,.koi-memory-status{color:var(--koi-muted);font-size:.86em}.koi-memory-notice{padding:4px 24px 12px}.koi-memory-body{display:grid;grid-template-columns:minmax(0,1fr);min-height:200px;height:55vh;max-height:55vh;grid-template-rows:minmax(0,1fr);overflow:hidden}.koi-memory-body.has-preview{grid-template-columns:minmax(220px,.9fr) minmax(260px,1.1fr)}.koi-memory-list,.koi-memory-preview{overflow:auto;min-width:0;min-height:0;padding:0 10px 12px;overscroll-behavior:contain}.koi-memory-hit{display:flex;width:100%;gap:12px;align-items:flex-start;text-align:left;padding:14px!important;border-radius:15px;background:transparent;cursor:pointer;transition:background .16s}.koi-memory-hit.active{background:var(--koi-panel-soft)}.koi-memory-icon{padding-top:2px;color:var(--koi-muted);flex-shrink:0}.koi-memory-hit-copy{display:flex;flex-direction:column;min-width:0;gap:5px}.koi-memory-hit-copy strong{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.koi-memory-hit-copy>span{color:var(--koi-muted);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.5;overflow-wrap:anywhere}.koi-memory-hit-copy small,.koi-memory-preview small{color:var(--koi-faint);font-size:.82em}.koi-memory-search mark{background:color-mix(in srgb,var(--koi-blue) 18%,transparent);color:var(--koi-ink);border-radius:3px;padding:0 1px}.koi-memory-preview{background:var(--koi-panel-soft);border-radius:16px;margin:0 10px 10px 0;padding:18px;animation:koi-fade-in .18s ease}.koi-memory-preview-head{display:flex;gap:10px;align-items:flex-start;justify-content:space-between}.koi-memory-preview-head strong{font-weight:600;overflow-wrap:anywhere}.koi-memory-preview-head button{background:transparent;cursor:pointer;flex-shrink:0}.koi-memory-origin{display:block;margin:8px 0;overflow-wrap:anywhere;line-height:1.5}.koi-memory-source-actions{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}.koi-memory-source-actions a{display:flex;gap:6px;align-items:center;color:var(--koi-blue);font-size:.9em}.koi-memory-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;margin-top:14px}.koi-memory-empty{padding:28px 14px;color:var(--koi-muted);line-height:1.6;text-align:center}.koi-memory-empty small{display:block;margin-top:12px;color:var(--koi-faint)}.koi-memory-more{padding:12px!important;width:100%;background:transparent;color:var(--koi-muted)!important;cursor:pointer}.koi-memory-thumbnail{width:76px;height:60px;object-fit:cover;border-radius:9px;background:var(--koi-panel-soft);flex-shrink:0}.koi-memory-media{display:flex;flex-direction:column;gap:12px;margin:14px 0;min-width:0}.koi-memory-full-image,.koi-memory-media audio,.koi-memory-media video{width:100%;max-height:40vh;object-fit:contain;border:0;border-radius:10px;background:transparent}.koi-memory-moments{display:flex;flex-wrap:wrap;gap:6px}.koi-memory-match-label,.koi-memory-moments button{background:var(--koi-panel-soft);border-radius:8px;padding:7px 10px;cursor:pointer;text-align:left}.koi-memory-moments button[aria-pressed=true]{color:var(--koi-blue);background:color-mix(in srgb,var(--koi-blue) 15%,transparent)}.koi-memory-match-track{height:10px;position:relative;border-radius:5px;background:color-mix(in srgb,var(--koi-ink) 12%,transparent);overflow:hidden}.koi-memory-match-track span{position:absolute;height:100%;background:var(--koi-blue);border-radius:5px}.koi-memory-table{overflow:auto}.koi-memory-table td{padding:6px 10px;background:var(--koi-panel-soft)}@media(max-width:650px){.koi-memory-body.has-preview{grid-template-columns:1fr}.koi-memory-body.has-preview .koi-memory-list{display:none}.koi-memory-preview{margin:0 10px 10px}.koi-memory-status{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){.koi-memory-search *{transition:none!important;animation:none!important}}