.memory-page {
  background:#fbfcfe;
  color:#17213a;
  font-size:14px;
  --memory-blue:#2669e8;
  --memory-line:#e3e8f1;
  --memory-muted:#63728c;
}
.memory-container {
  max-width:1240px;
  margin:0 auto;
  padding:0 28px;
}
.memory-header {
  background:#fff;
  border-bottom:1px solid var(--memory-line);
}
.memory-header nav {
  height:74px;
  display:flex;
  align-items:center;
  gap:32px;
}
.memory-header a {
  color:#3b4b68;
  text-decoration:none;
  font-size:13px;
}
.memory-header .memory-brand {
  font-size:19px;
  font-weight:750;
  letter-spacing:-.7px;
  color:#113b88;
  margin-right:30px;
}
.memory-header a.active {
  height:100%;
  display:flex;
  align-items:center;
  border-bottom:2px solid var(--memory-blue);
  font-weight:650;
  color:#17213a;
}
.memory-local {
  margin-left:auto;
  font-size:10px;
  letter-spacing:1px;
  color:var(--memory-muted);
}
.memory-page a {
  color:#2661c8;
}
.memory-page a:focus-visible,.memory-page button:focus-visible,.memory-page select:focus-visible,.memory-page input:focus-visible,.memory-page summary:focus-visible {
  outline:3px solid #5482ed;
  outline-offset:4px;
}
.memory-page h1 {
  font-size:36px;
  line-height:1.2;
  letter-spacing:-1.2px;
  margin:0 0 10px;
}
.memory-page h2 {
  font-size:20px;
  letter-spacing:-.4px;
  line-height:1.4;
  margin:0 0 8px;
}
.memory-page h3 {
  font-size:16px;
  line-height:1.45;
  margin:0 0 3px;
}
.memory-page p {
  margin:8px 0;
}
.memory-page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding:40px 0 25px;
}
.memory-page-heading p {
  color:var(--memory-muted);
  font-size:16px;
}
.memory-totals {
  display:flex;
  gap:14px;
}
.memory-totals>div {
  border:1px solid var(--memory-line);
  border-radius:9px;
  min-width:110px;
  padding:10px 18px;
  color:#52617a;
  font-size:12px;
  background:#fff;
}
.memory-totals strong {
  display:block;
  font-size:23px;
  color:#17213a;
  line-height:1.3;
}
.memory-filters {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
}
.memory-filters label {
  margin:0;
}
.memory-filters input,.memory-filters select,.memory-filters button {
  height:38px;
  border:1px solid #dce3ee;
  border-radius:6px;
  background:#fff;
  color:#263652;
  font:inherit;
  font-size:13px;
  margin:0;
  padding:0 12px;
}
.memory-filters select {
  width:100%;
}
.memory-filters>label:not(.memory-search) {
  flex:0 0 150px;
}
.memory-filters>label:nth-of-type(4) {
  flex-basis:195px;
}
.memory-filters button {
  cursor:pointer;
}
.memory-filters>a {
  font-size:12px;
  white-space:nowrap;
}
.memory-search {
  flex:1;
  min-width:150px;
  position:relative;
}
.memory-search>span {
  position:absolute;
  left:12px;
  top:0;
  font-size:25px;
  color:var(--memory-muted);
}
.memory-search input {
  width:100%;
  padding-left:35px;
}
.memory-search input::placeholder {
  color:#77849b;
}
.memory-muted,.memory-key {
  color:var(--memory-muted);
  font-size:12px;
}
.memory-legend {
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:17px;
  font-size:11px;
  color:#566580;
  margin:15px 0 22px;
}
.memory-legend>span {
  display:flex;
  align-items:center;
  gap:6px;
}
.memory-dot {
  display:inline-block;
  flex-shrink:0;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#8491a8;
}
.memory-dot.issue {
  background:#e84d52;
}
.memory-dot.good {
  background:#22986c;
}
.memory-dot.repair {
  background:#347cec;
}
.memory-dot.prompt {
  background:#8b64d8;
}
.memory-badge {
  display:inline-block;
  border-radius:20px;
  font-size:10px;
  line-height:1.5;
  padding:4px 10px;
  white-space:nowrap;
  background:#eef1f6;
  color:#53657e;
  font-weight:650;
}
.memory-badge.capability,.memory-badge.repair {
  background:#e9f0ff;
  color:#225bc2;
}
.memory-badge.skill,.memory-badge.prompt {
  background:#f0ebfc;
  color:#6842b6;
}
.memory-badge.issue {
  background:#fff0f0;
  color:#b92f3c;
}
.memory-badge.good {
  background:#e5f5ed;
  color:#146448;
}
.memory-section {
  margin:0 0 32px;
}
.memory-number {
  display:inline-block;
  border-radius:50%;
  padding:0 6px;
  background:#edf1f7;
  color:#52637f;
  font-size:12px;
  vertical-align:middle;
  margin-left:5px;
}
.section-subtitle {
  margin:0 0 12px!important;
}
.memory-row {
  display:grid;
  grid-template-columns:minmax(185px,1.4fr) 94px minmax(150px,1fr) minmax(150px,1fr) 120px 12px;
  align-items:center;
  gap:20px;
  border-top:1px solid var(--memory-line);
  min-height:112px;
  padding:18px 3px;
  text-decoration:none!important;
  color:inherit!important;
  transition:background .15s;
}
.memory-row:last-child {
  border-bottom:1px solid var(--memory-line);
}
.memory-row:hover {
  background:#f3f6fc;
}
.memory-row>.memory-badge {
  justify-self:start;
}
.memory-identity {
  min-width:0;
}
.memory-identity h3 {
  font-size:16px;
  font-weight:650;
  letter-spacing:-.25px;
}
.memory-key {
  display:block;
  overflow-wrap:anywhere;
}
.memory-counts {
  display:flex;
  flex-direction:column;
  font-size:12px;
  line-height:1.65;
  color:#52617c;
}
.memory-counts strong {
  font-weight:650;
  color:#293b5a;
}
.memory-last {
  border-left:1px solid var(--memory-line);
  padding-left:18px;
  font-size:12px;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.memory-last>span {
  color:#71809b;
  font-size:11px;
}
.memory-chevron {
  font-size:24px;
  color:#657699;
}
.memory-mini {
  display:flex;
  justify-content:space-between;
  position:relative;
  gap:8px;
  max-width:220px;
}
.memory-mini:before {
  content:'';
  position:absolute;
  height:1px;
  background:#d7dfe9;
  top:9px;
  left:15px;
  right:15px;
}
.mini-event {
  z-index:1;
  text-align:center;
  min-width:28px;
}
.mini-dots {
  display:flex;
  gap:2px;
  justify-content:center;
  align-items:center;
  height:20px;
}
.mini-dots .memory-dot {
  width:7px;
  height:7px;
  box-shadow:0 0 0 2px #fbfcfe;
}
.mini-event time {
  font-size:9px;
  color:#657591;
  display:block;
  margin-top:5px;
}
.memory-row.watching .memory-identity h3 {
  font-weight:600;
}
.memory-empty {
  text-align:center;
  padding:65px 20px;
  border:1px solid var(--memory-line);
  border-radius:10px;
  background:#fff;
  margin:24px 0;
}
.memory-empty p {
  color:var(--memory-muted);
}
.memory-footer {
  font-size:11px;
  color:#718099;
  padding-top:25px;
  padding-bottom:24px;
}
.memory-back {
  display:inline-block;
  margin:24px 0;
  font-size:12px;
  text-decoration:none;
}
.memory-detail-heading {
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}
.memory-detail-heading h1 {
  margin:0;
  font-size:32px;
}
.memory-detail-heading p {
  flex-basis:100%;
  margin:0;
  color:var(--memory-muted);
  font-size:13px;
  overflow-wrap:anywhere;
}
.memory-stats {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin:23px 0;
}
.memory-stats>div {
  display:grid;
  grid-template-columns:14px 1fr;
  gap:0 13px;
  align-items:center;
  border:1px solid var(--memory-line);
  border-radius:9px;
  background:#fff;
  padding:14px 18px;
}
.memory-stats strong {
  font-size:24px;
  line-height:1.4;
}
.memory-stats span {
  grid-column:2;
  color:#52617c;
  font-size:12px;
}
.memory-detail-grid {
  display:grid;
  grid-template-columns:minmax(0,7fr) minmax(260px,3fr);
  gap:20px;
  align-items:start;
}
.memory-panel {
  border:1px solid var(--memory-line);
  border-radius:10px;
  padding:20px;
  background:#fff;
  margin-bottom:18px;
  min-width:0;
}
.memory-panel h2 {
  font-size:17px;
}
.memory-panel>p.memory-muted {
  font-size:11px;
  margin-bottom:20px;
}
.memory-timeline {
  padding:0 0 0 22px;
  margin:20px 0 0;
  list-style:none;
}
.memory-event {
  position:relative;
  border-left:1px solid #d8e1ef;
  padding:0 0 22px 24px;
  margin:0 0 0 -16px;
}
.memory-event:last-child {
  padding-bottom:0;
}
.memory-event:before {
  content:'';
  position:absolute;
  top:5px;
  left:-5px;
  width:9px;
  height:9px;
  border-radius:50%;
  background:#8193b2;
  box-shadow:0 0 0 4px #fff;
}
.event-date {
  font-size:11px;
  font-weight:650;
  letter-spacing:.25px;
  margin:0 0 10px;
  color:#445775;
}
.event-date span {
  font-weight:400;
  color:#72819a;
  margin-left:10px;
}
.memory-evidence {
  border:1px solid var(--memory-line);
  border-radius:8px;
  background:#fdfefe;
  padding:14px 16px;
}
.memory-evidence>header,.memory-material>header {
  display:flex;
  justify-content:space-between;
  align-items:start;
  gap:10px;
}
.memory-evidence>header a,.memory-material>header a {
  white-space:nowrap;
  font-size:11px;
  text-decoration:none;
  padding-top:3px;
}
.memory-observation+.memory-observation {
  border-top:1px solid var(--memory-line);
  margin-top:18px;
  padding-top:10px;
}
.observation-label {
  font-size:10px;
  color:#6c7c97;
  letter-spacing:.35px;
}
.memory-observation>p:not(.observation-label) {
  font-size:13px;
  line-height:1.7;
  color:#405473;
}
.memory-excerpt {
  margin:13px 0;
}
.memory-excerpt blockquote {
  font-size:14px;
  line-height:1.8;
  margin:4px 0;
  border:0;
  padding:0;
  color:#17213a;
  white-space:pre-wrap;
}
.excerpt-signals .memory-badge {
  font-size:9px;
  padding:2px 7px;
}
.memory-asr {
  background:#fff8e7;
  color:#765612;
  padding:8px 10px;
  border-radius:5px;
  font-size:11px;
}
.memory-disclosure {
  font-size:11px;
  border-top:1px solid #edf0f5;
  margin-top:12px;
  padding-top:10px;
  color:#5e6f89;
}
.memory-disclosure summary,.memory-provenance summary {
  cursor:pointer;
}
.memory-page pre {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
  font-size:10px;
  line-height:1.6;
  background:#f5f7fb;
  border-radius:5px;
  padding:10px;
  max-width:100%;
  color:#53637a;
}
.memory-page dl {
  margin:12px 0;
  font-size:12px;
}
.memory-page dl>div {
  display:flex;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid #f0f3f7;
  padding:6px 0;
}
.memory-page dt {
  font-weight:400;
  color:#5d6c84;
}
.memory-page dd {
  margin:0;
  text-align:right;
  overflow-wrap:anywhere;
  min-width:0;
}
.memory-disclosure dl>div {
  display:block;
}
.memory-disclosure dd {
  text-align:left;
}
.canonical-field {
  margin-top:20px;
  border-top:1px solid var(--memory-line);
  padding-top:14px;
  font-size:11px;
  color:#6b7b96;
}
.canonical-field code {
  display:block;
  background:#f1f4f9;
  padding:8px;
  border-radius:5px;
  overflow-wrap:anywhere;
  color:#253956;
  font-size:11px;
  margin:6px 0;
}
.canonical-field button {
  border:1px solid var(--memory-line);
  background:#fff;
  border-radius:4px;
  font:inherit;
  padding:3px 10px;
  color:#475a78;
  cursor:pointer;
}
.copy-result {
  margin-left:7px;
}
.memory-sources {
  padding:0;
  list-style:none;
  margin:10px 0 0;
}
.memory-sources li {
  border-bottom:1px solid #eef2f7;
  padding:8px 0;
}
.memory-sources li:last-child {
  border:0;
}
.memory-sources a {
  display:block;
  text-decoration:none;
  color:#354c70;
  font-size:12px;
}
.memory-sources span {
  font-size:10px;
  color:#74839b;
  display:block;
  overflow-wrap:anywhere;
}
.memory-provenance {
  font-size:11px;
  color:#5f708a;
}
.memory-provenance summary {
  font-size:13px;
  font-weight:650;
  color:#293c5b;
}
.memory-provenance h3 {
  font-size:12px;
  margin-top:20px;
}
.memory-provenance article {
  border-bottom:1px solid var(--memory-line);
  padding:10px 0;
}
.memory-material {
  padding:14px 0;
  border-top:1px solid var(--memory-line);
  margin-top:16px;
}
.memory-material h3 {
  font-size:14px;
}
.material-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:12px 0;
}
.material-grid>div {
  padding:13px;
  border-radius:7px;
  background:#f5f7fc;
  font-size:12px;
}
.material-grid>div:first-child {
  background:#f5f1fb;
}
.material-grid>div:last-child {
  background:#f0f8f6;
}
.memory-material h4 {
  font-size:11px;
  margin:0 0 7px;
  color:#354b70;
}
.material-expression {
  font-size:15px;
  font-weight:600;
}
.memory-context-note {
  padding:12px;
  background:#f0f3f9;
  font-size:12px;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
@media(max-width:1100px) {
  .memory-row {
    grid-template-columns:minmax(160px,1fr) 88px minmax(130px,1fr) 150px 12px;
    gap:14px;
  }
  .memory-last {
    display:none;
  }
  .memory-filters>label:not(.memory-search) {
    flex-basis:125px;
  }
  .memory-filters>label:nth-of-type(4) {
    flex-basis:180px;
  }
  .memory-detail-grid {
    grid-template-columns:1fr;
  }
  .memory-sidebar {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    align-items:start;
  }
  .memory-provenance {
    grid-column:1/-1;
  }
}
@media(max-width:740px) {
  .memory-container {
    padding-left:18px;
    padding-right:18px;
  }
  .memory-header nav {
    height:62px;
    gap:20px;
  }
  .memory-header .memory-brand {
    margin-right:auto;
    font-size:17px;
  }
  .memory-local {
    display:none;
  }
  .memory-page h1 {
    font-size:29px;
  }
  .memory-page-heading {
    align-items:flex-start;
    padding-top:28px;
    flex-direction:column;
    gap:15px;
  }
  .memory-page-heading p {
    font-size:13px;
  }
  .memory-totals {
    gap:10px;
  }
  .memory-totals>div {
    min-width:100px;
    padding:7px 12px;
  }
  .memory-filters {
    flex-wrap:wrap;
  }
  .memory-search {
    flex-basis:100%;
  }
  .memory-filters>label:not(.memory-search) {
    flex:1 1 125px;
  }
  .memory-legend {
    justify-content:flex-start;
    gap:10px;
    font-size:10px;
  }
  .memory-row {
    grid-template-columns:minmax(0,1fr) 90px 12px;
    gap:12px;
    padding:18px 0;
  }
  .memory-row>.memory-chevron {
    grid-column:3;
    grid-row:1/3;
  }
  .row-timeline {
    grid-column:1;
    grid-row:2;
  }
  .memory-counts {
    grid-column:2;
    grid-row:2;
    font-size:10px;
  }
  .memory-identity h3 {
    font-size:15px;
  }
  .memory-identity {
    grid-column:1;
  }
  .memory-stats {
    grid-template-columns:repeat(2,1fr);
    gap:10px;
  }
  .memory-stats>div {
    padding:10px 14px;
  }
  .memory-detail-heading h1 {
    font-size:28px;
  }
  .memory-panel {
    padding:15px;
  }
  .memory-sidebar {
    display:block;
  }
  .memory-evidence {
    padding:12px;
  }
  .memory-event {
    padding-left:17px;
  }
  .memory-evidence>header {
    flex-direction:column;
    gap:7px;
  }
  .material-grid {
    grid-template-columns:1fr;
  }
  .memory-detail-grid {
    gap:0;
  }
  .memory-back {
    margin:20px 0;
  }
}
.mini-event small {
  display:block;
  font-size:8px;
  line-height:1.2;
  color:#79859a;
}
.mini-dots {
  flex-wrap:wrap;
  max-width:44px;
  margin:auto;
}
.memory-observation .observation-label {
  margin:6px 0 3px;
}
.memory-excerpt {
  margin:8px 0;
}
.memory-observation>p:not(.observation-label) {
  margin:4px 0;
}
.memory-evidence .memory-disclosure {
  margin-top:8px;
  padding-top:8px;
}
.memory-event {
  padding-bottom:18px;
}
.memory-evidence {
  padding:12px 14px;
}

/* Learning Memory catalog: reference-inspired surfaces, scoped away from details. */
body.memory-list-page { background:linear-gradient(180deg,#f0f7ff 0,#fbfcff 420px,#fafbff 100%); }
.memory-list-page :is(.memory-container,.lt-container) { max-width:1190px; }
.memory-list-page .lt-header nav { min-height:62px; }
.memory-list-page .lt-nav a { padding-block:20px; }
.memory-list-page .memory-page-heading { position:relative; isolation:isolate; min-height:164px; padding:34px 0 26px; }
.memory-list-page .memory-page-heading h1 { font-size:38px; letter-spacing:-1.5px; margin-bottom:6px; }
.memory-list-page .memory-page-heading p { margin:0; color:#475f83; }
.memory-list-page .memory-page-heading .memory-heading-note { font-size:13px; margin-top:2px; }
.memory-landscape { position:absolute; z-index:-1; top:0; bottom:-65px; left:50%; width:100vw; transform:translateX(-50%); overflow:hidden; background:linear-gradient(110deg,#ecf8ffb3,#e1efffe6 75%,#f4efff); mask-image:linear-gradient(#000 65%,transparent); }
.memory-landscape i { position:absolute; width:80px; height:80px; border-radius:50%; left:60%; top:55px; background:linear-gradient(#f7acb8,#f8d9d280); }
.memory-landscape b,.memory-landscape>span { position:absolute; inset:85px 0 0; background:#bddcff7a; clip-path:polygon(0 8%,9% 42%,21% 59%,34% 31%,45% 50%,57% 17%,65% 52%,77% 27%,91% 60%,100% 22%,100% 100%,0 100%); }
.memory-landscape>span { transform:translateY(23px) scaleX(-1); opacity:.55; }
.memory-list-page .memory-totals { gap:0; flex-shrink:0; border:1px solid #ffffffb3; border-radius:14px; overflow:hidden; box-shadow:0 8px 25px #5a7fab09; }
.memory-list-page .memory-totals>div { display:flex; gap:10px; min-width:138px; padding:14px; border:0; border-radius:0; background:#ffffffb8; }
.memory-list-page .memory-totals>div+div { border-left:1px solid #e6edf6; }
.memory-list-page .memory-totals strong { font-size:25px; }
.memory-totals small { font-size:10px; white-space:nowrap; }
.memory-total-icon { width:34px; height:36px; padding:7px; color:#00a276; background:#e1faf0; border-radius:10px; }
.memory-totals>div+div .memory-total-icon { background:#e3f4ff; color:#008bfa; }
.memory-list-page svg { width:100%; height:100%; display:block; }
.memory-list-page .memory-filters { position:relative; padding:10px; box-shadow:0 8px 24px #365c8f06; margin-bottom:16px; }
.memory-list-page .memory-filters :is(input,select,button) { height:40px; }
.memory-list-page .memory-filters>label:not(.memory-search) { flex-basis:145px; }
.memory-list-page .memory-filters>label:nth-of-type(4) { flex-basis:180px; }
.memory-list-page .memory-filters button { background:#1555ff; padding-inline:19px; box-shadow:0 3px 8px #1555ff18; }
.memory-list-page .memory-legend { margin:14px 10px 24px; }
.memory-section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.memory-section-heading h2 { display:flex; align-items:center; gap:10px; font-size:22px; }
.memory-section-heading>a { font-size:13px; white-space:nowrap; }
.memory-section-heading>a span { margin-left:8px; }
.memory-section-icon { width:29px; height:29px; color:#00a477; }
.memory-section:has(.watching) .memory-section-icon,.memory-section:has(.watching) .memory-section-heading>a { color:#7540ec; }
.memory-list-page .memory-number { border-radius:10px; padding:1px 9px; background:#e1f2f0; font-size:12px; }
.memory-section:has(.watching) .memory-number { background:#ece8ff; }
.memory-list-page .section-subtitle { font-size:13px; }
.memory-list-page .memory-section { margin-bottom:32px; }
.memory-list-page .memory-row { grid-template-columns:minmax(255px,1.6fr) 92px minmax(160px,1.1fr) minmax(195px,1.2fr) 122px 12px; gap:16px; min-height:84px; padding:12px 18px 12px 15px; border-left:3px solid var(--item-color); border-radius:13px; box-shadow:0 5px 20px #385a9004; transition:background .15s,border-color .15s,box-shadow .15s; }
.memory-list-page .memory-row:hover { box-shadow:0 6px 20px #385a9010; border-color:var(--item-color); background:#fff; }
.tone-violet { --item-color:#7947f5; --item-bg:#f2edff; }
.tone-blue { --item-color:#008dff; --item-bg:#e5f4ff; }
.tone-amber { --item-color:#e9a000; --item-bg:#fff5df; }
.tone-rose { --item-color:#f25275; --item-bg:#ffedf2; }
.tone-green { --item-color:#00a77c; --item-bg:#e0faf1; }
.memory-list-page .memory-identity { display:flex; gap:15px; align-items:center; }
.memory-list-page .memory-identity>div { min-width:0; }
.memory-item-icon { width:54px; height:54px; flex:0 0 54px; padding:14px; border-radius:14px; color:var(--item-color); background:var(--item-bg); }
.memory-list-page .memory-identity h3 { font-size:16px; }
.memory-list-page .memory-key { font-size:12px; line-height:1.45; }
.memory-list-page .memory-badge.skill { background:#f0eaff; color:#7340f2; }
.memory-list-page .memory-badge.capability { background:#e8f0ff; color:#1555ff; }
.memory-list-page .memory-last { display:flex; background:#f7f9fc; border:0; border-radius:10px; padding:8px 12px; font-size:12px; }
.memory-list-page .memory-counts { font-size:12px; }
.memory-encouragement { display:flex; align-items:center; gap:15px; padding:18px; background:linear-gradient(110deg,#f0ecff,#f0edff99); border-radius:16px; }
.memory-growth-icon { width:48px; height:48px; flex-shrink:0; padding:11px; background:#ffffff66; color:#7846ee; border-radius:12px; }
.memory-encouragement h2 { font-size:15px; margin:0; }
.memory-encouragement p { font-size:12px; color:#52698d; margin:3px 0 0; }
.memory-encouragement>a { margin-left:auto; flex-shrink:0; padding:10px 18px; border-radius:9px; background:#7043ef; color:white; font-size:12px; box-shadow:0 4px 10px #7043ef20; }
.memory-encouragement>a span { margin-left:9px; }
@media(max-width:1100px) {
 .memory-list-page .memory-row { grid-template-columns:minmax(205px,1.4fr) 85px minmax(120px,1fr) minmax(150px,1fr) 12px; gap:12px; }
 .memory-list-page .memory-last { grid-column:4; grid-row:2; }
 .memory-list-page .memory-row>.memory-chevron { grid-column:5; grid-row:1/3; }
 .memory-list-page .memory-totals>div { min-width:118px; padding:12px; }
 .memory-list-page .memory-page-heading h1 { font-size:34px; }
 .memory-list-page .memory-filters { flex-wrap:wrap; }
 .memory-list-page .memory-search { flex-basis:100%; }
 .memory-list-page .memory-filters>label:not(.memory-search) { flex:1; }
}
@media(max-width:820px) {
 .memory-list-page .memory-page-heading { padding-top:28px; gap:20px; flex-direction:column; align-items:stretch; }
 .memory-list-page .memory-page-heading h1 { font-size:30px; }
 .memory-list-page .memory-totals { width:100%; }
 .memory-list-page .memory-totals>div { flex:1; }

 .memory-list-page .memory-filters>label:not(.memory-search) { flex:1 1 115px; }
 .memory-list-page .memory-row { grid-template-columns:minmax(0,1fr) auto 10px; padding:15px 12px; gap:14px 8px; }
 .memory-list-page .memory-identity { grid-column:1/3; gap:12px; }
 .memory-list-page .memory-item-icon { width:44px; height:44px; flex-basis:44px; padding:11px; }
 .memory-list-page .memory-row>.memory-badge { grid-column:1; grid-row:2; margin-left:56px; }
 .memory-list-page .memory-row>.memory-chevron { grid-column:3; grid-row:1/3; }
 .memory-list-page .row-timeline { grid-column:1; grid-row:3; }
 .memory-list-page .memory-counts { grid-column:2/4; grid-row:3; font-size:11px; }
 .memory-list-page .memory-last { grid-column:1/4; grid-row:4; flex-direction:row; align-items:center; gap:8px; padding:6px 10px; }
 .memory-section-heading h2 { font-size:21px; }
 .memory-section-heading>a { font-size:11px; }
 .memory-list-page .memory-legend { margin-inline:0; justify-content:flex-start; }
 .memory-encouragement { flex-wrap:wrap; gap:12px; }
 .memory-encouragement>div { flex:1; min-width:190px; }
 .memory-encouragement>a { margin-left:60px; }
}
/* User-facing category names remain readable on narrow screens. */
.memory-list-page .memory-totals small { white-space:normal; display:block; }
.memory-list-page .memory-section-heading { flex-wrap:wrap; }
.memory-list-page .memory-filters>label:nth-of-type(3) { flex-basis:185px; }
@media(max-width:820px) {
 .memory-list-page .memory-totals>div { min-width:0; }
 .memory-list-page .memory-filters>label:nth-of-type(3) { flex:1 1 165px; }
}
