.memory-hub-grow {
  min-width: 0;
  flex: 1;
}

.memory-hub-primary-label {
  font-weight: 500;
  color: var(--color-text-primary);
}

.memory-hub-section-title {
  font-weight: 600;
  color: var(--color-text-primary);
}

.memory-hub-text-primary {
  color: var(--color-text-primary);
}

.memory-hub-text-secondary {
  color: var(--color-text-secondary);
}

.memory-hub-hint-tight {
  margin-top: 4px;
  margin-bottom: 0;
}

.memory-hub-hint {
  margin-top: 6px;
}

.memory-hub-toggle {
  flex-shrink: 0;
  margin-top: 2px;
}

.memory-hub-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.memory-hub-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.memory-hub-row-center {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.memory-hub-stack-gap {
  display: flex;
  gap: 8px;
}

.memory-hub-stack-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.memory-hub-text-block {
  margin-top: 8px;
  font-size: 12px;
}

.memory-hub-top-gap {
  margin-top: 10px;
}

.memory-hub-top-gap-sm {
  margin-top: 8px;
}

.memory-hub-top-gap-md {
  margin-top: 12px;
}

.memory-hub-caption {
  font-size: 11px;
  color: var(--color-text-secondary);
  min-width: 0;
  overflow-wrap: anywhere;
}

.memory-hub-text-block-primary {
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-text-primary);
  min-width: 0;
  overflow-wrap: anywhere;
}

.memory-hub-chip-row {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.memory-approval-payload {
  margin: 10px 0 0;
  max-height: 148px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--color-border-subtle);
  border-radius: 6px;
  background: var(--color-bg-secondary);
  color: var(--color-text-secondary);
  padding: 8px;
  font-size: 11px;
  line-height: 1.45;
}

.memory-hub-inline-primary {
  font-size: 12px;
  color: var(--color-text-primary);
}

.memory-hub-inline-primary-sm {
  font-size: 13px;
  color: var(--color-text-primary);
}

.memory-hub-inline-secondary-top {
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.memory-hub-inline-secondary-gap {
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.memory-hub-toggle-shrink {
  flex-shrink: 0;
}

.memory-hub-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.memory-hub-grid {
  display: grid;
  gap: 10px;
}

.memory-hub-row-wrap-center {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.memory-inspector-shell {
  min-width: 0;
  overflow: hidden;
}

.memory-inspector-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(136px, 160px) auto;
  gap: 8px;
  align-items: center;
}

.memory-inspector-search > * {
  min-width: 0;
}

.memory-inspector-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(340px, 1.1fr);
  gap: 12px;
  margin-top: 12px;
  min-width: 0;
}

.memory-inspector-results,
.memory-observation-detail {
  min-width: 0;
}

.memory-observation-result {
  width: 100%;
  appearance: none;
  border-color: var(--color-border-subtle);
  cursor: pointer;
  display: block;
  font: inherit;
  min-width: 0;
  overflow: hidden;
  text-align: left;
}

.memory-observation-result:hover {
  border-color: var(--color-border);
  background: var(--color-bg-secondary);
}

.memory-inspector-item-header {
  align-items: flex-start;
}

.memory-inspector-item-header > :first-child {
  min-width: 0;
}

.memory-inspector-item-header .settings-badge {
  flex: 0 0 auto;
  max-width: 96px;
}

.memory-inspector-title,
.memory-inspector-detail-title {
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
}

.memory-inspector-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.memory-inspector-detail-heading {
  min-width: 0;
}

.memory-inspector-detail-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.memory-inspector-snippet {
  display: -webkit-box;
  line-height: 1.45;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.memory-inspector-chip-row .settings-badge {
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memory-inspector-textarea {
  min-height: 128px;
  max-height: 260px;
}

.memory-inspector-facts {
  margin-bottom: 0;
  max-height: 132px;
  overflow: auto;
  padding-left: 18px;
}

.memory-inspector-facts li {
  overflow-wrap: anywhere;
  padding-left: 2px;
}

.memory-inspector-timeline-card {
  min-width: 0;
  overflow: hidden;
}

@media (max-width: 980px) {
  .memory-inspector-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .memory-inspector-search {
    grid-template-columns: 1fr;
  }
}
