/* Memory panel (web/graph.js): a collapsible dock, bottom right (left column in the details view). The full-size
   view is web/graphbig.css. Colours from style.css tokens (light + dark). */
.mem-dock { position: fixed; right: 14px; bottom: 14px; z-index: 40; font-size: 12px; max-width: calc(100vw - 28px); }
.mem-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card);
  border-radius: 999px; padding: 5px 11px; box-shadow: var(--shadow); color: var(--ink-2); }
.mem-pill b { font-weight: 600; font-size: 11.5px; letter-spacing: .02em; }
.mem-pill:hover { border-color: var(--hs); }
.mem-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--stale); }
.mem-dock.has .mem-dot { background: var(--hs); }
.mem-n { font: 600 10.5px var(--mono); color: var(--ink-3); }
.mem-body { display: none; width: 316px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(16, 24, 40, .14); padding: 8px 8px 7px; }
.mem-dock.open .mem-body { display: block; }
.mem-dock.open .mem-pill { display: none; }
.mem-head { display: flex; align-items: center; gap: 5px; padding: 0 2px 2px; min-width: 0; }
.mem-head b { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
.mem-sub { font-size: 11px; color: var(--ink-3); min-width: 0; padding: 0 2px 4px; line-height: 1.35; }
.mem-ico { display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; min-height: 19px; }
.mem-ico svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.mem-ico[hidden] { display: none; }
.mem-stage { position: relative; display: block; border-radius: 8px; cursor: zoom-in; outline: none; }
.mem-stage:focus-visible { box-shadow: 0 0 0 2px var(--hs); }
.mem-stage:hover .mem-svg { box-shadow: inset 0 0 0 1px var(--line); }
.mem-zoomhint, .mem-stage::after { position: absolute; bottom: 4px; font: 600 9.5px var(--sans); color: var(--ink-3);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; line-height: 15px; pointer-events: none; }
.mem-zoomhint { right: 4px; opacity: 0; transition: opacity .12s; }
.mem-stage:hover .mem-zoomhint, .mem-stage:focus-visible .mem-zoomhint { opacity: 1; }
.mem-stage::after { content: attr(data-more); left: 4px; }
.mem-stage[data-more=""]::after, .mem-stage:not([data-more])::after { display: none; }
.mem-sp { flex: 1; }
.mem-btn { white-space: nowrap; border: 1px solid var(--line); background: var(--card-2); border-radius: 6px; padding: 1px 7px; font-size: 11px;
  color: var(--ink-2); line-height: 1.5; }
.mem-btn:hover { border-color: var(--err); color: var(--err); }
.mem-btn.mem-x:hover { border-color: var(--hs); color: var(--hs); }
.mem-using { font-size: 11.5px; color: var(--ink-2); padding: 3px 6px; margin: 0 0 4px; background: var(--hs-soft);
  border-radius: 6px; line-height: 1.35; }
.mem-using i, .mem-note i { font-style: normal; font: 600 9.5px var(--mono); text-transform: uppercase; letter-spacing: .06em;
  color: var(--hs); margin-right: 4px; }
.mem-svg { display: block; width: 100%; height: auto; background: var(--card-2); border-radius: 8px; }
.mem-empty { color: var(--ink-3); font-size: 11.5px; padding: 12px 8px; border: 1px dashed var(--line); border-radius: 8px; line-height: 1.4; }
.mem-empty[hidden] { display: none; }
.mem-voice { font-size: 11.5px; margin: 2px 0 4px; color: var(--ink, inherit); }
.mem-voice[hidden] { display: none; }
.mem-foot { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.mem-foot:empty { display: none; }
.mem-fact { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--hs-soft); color: var(--ink-2); }
.mem-e { stroke: var(--line); stroke-width: 1.3; }
.mem-e.k-wikidata { stroke: var(--web); stroke-opacity: .55; }
.mem-e.k-said { stroke: var(--ink-3); stroke-opacity: .7; }
.mem-e.k-co { stroke-dasharray: 3 3; }
.mem-e.k-user { stroke: var(--hs); stroke-dasharray: 2 3; }
.mem-e.hot { stroke: var(--gold); stroke-opacity: 1; stroke-width: 2; }
.mem-el { font: 500 8.5px var(--mono); fill: var(--ink-3); paint-order: stroke; stroke: var(--card-2); stroke-width: 3px; }
.mem-n .mem-c { fill: var(--ink-3); stroke: var(--card); stroke-width: 1.5; }
.mem-n.k-person .mem-c { fill: var(--audio); }
.mem-n.k-place .mem-c { fill: var(--local); }
.mem-n.k-org .mem-c { fill: var(--web); }
.mem-n.k-thing .mem-c { fill: var(--draft); }
.mem-n.k-you .mem-c, .mem-n.k-fact .mem-c { fill: var(--hs); }
.mem-n.user .mem-c { stroke: var(--hs); stroke-width: 2; }
.mem-l { font: 500 10px var(--sans); fill: var(--ink-2); paint-order: stroke; stroke: var(--card-2); stroke-width: 3px; stroke-linejoin: round; }
.mem-l.hot { fill: var(--ink); font-weight: 700; }
.mem-n.now .mem-c { stroke: var(--ink-2); stroke-width: 1.2; }
.mem-halo { fill: none; stroke: var(--gold); stroke-width: 2.5; opacity: .9; animation: mem-pulse 1.6s ease-out 2; }
@keyframes mem-pulse { 0% { stroke-width: 6; opacity: .2; } 100% { stroke-width: 2.5; opacity: .9; } }
.mem-note { margin-top: 4px; font-size: 12px; color: var(--ink-2); line-height: 1.35; }
.mem-note[hidden] { display: none; }
@media (max-width: 640px) { .mem-body { width: calc(100vw - 28px); } }
.mem-dock.in-side { position: static; max-width: none; flex: none; }
.mem-dock.in-side .mem-body { width: 100%; box-shadow: var(--shadow); padding: 6px; }
body.has-meter .mem-dock:not(.in-side) { bottom: 74px; }   /* above the cost meter bar (web/meter.css) */
/* persona (web/graph.js "For you"): profile row in the memory panel + the "answered for you" note */
.pers { margin-top: 6px; padding-top: 5px; border-top: 1px solid var(--line); }
.pers[hidden] { display: none; }
.pers-head { display: flex; align-items: center; gap: 5px; padding: 0 2px 1px; min-width: 0; }
.pers-head b { white-space: nowrap; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
.pers-sub { font-size: 11px; color: var(--ink-3); padding: 0 2px 3px; line-height: 1.35; }   /* own line: never cut to "n…" */
.pers-sub:empty { display: none; }
.pers-line { font-size: 11.5px; color: var(--ink-2); padding: 1px 2px; line-height: 1.35; }
.pers-line.muted { color: var(--ink-3); }
.pers-note i { color: var(--gold); }
